private void btnXoa_Click(object sender, EventArgs e) { string maBN = txtMaBN.Text; BenhNhanBUL bnBUL = new BenhNhanBUL(); DialogResult rs = MessageBox.Show("Bạn muốn xóa bản ghi này?", "Xóa bản ghi", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (rs == DialogResult.Yes) { if (bnBUL.Xoa(maBN)) { MessageBox.Show("Xóa bản ghi thành công!"); } else { MessageBox.Show("Xóa bản ghi thất bại!"); } } ReLoad(); }