using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Pur.Pop_upWindow { public partial class frmDeleteTask : Form { public string strBz = ""; public frmDeleteTask() { InitializeComponent(); } //取消操作 private void benCancel_Click(object sender, EventArgs e) { this.Close(); } //确认操作 private void btnConfirm_Click(object sender, EventArgs e) { if (strBz == "") { MessageBox.Show("请写明备注"); } else { strBz = txt_bz.Text; } } } }