private void simpleButton3_Click(object sender, EventArgs e) { if (txtMaNT.Text == "") { XtraMessageBox.Show("Bạn chưa chọn dòng!!"); } else { DialogResult dialogResult = XtraMessageBox.Show("Xác nhận", "Bạn thực sự muốn xóa?", MessageBoxButtons.YesNo); if (dialogResult == DialogResult.Yes) { NguoiThanDao ng = new NguoiThanDao(); ng.xoanguothan(txtMaNT.Text); XtraMessageBox.Show("Đã xóa thành công!!"); this.refresh(); resettext(); } } }