private void delbtn_Click(object sender, EventArgs e) { if (found) { DialogResult dr = MessageBox.Show("确定要删除这类书吗?", "重要提醒", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dr == DialogResult.Yes) { FileDate.Delete <BookMaster>(master); master = new BookMaster(); showInfotxt.Text = ""; } } else { tipslb.Text = "请先确认书籍信息再进行操作"; } }