private void BtnDelete_Click(object sender, EventArgs e) { try { DialogResult Rslt = MessageBox.Show(@"تمت إضافة بيانات السلفة المؤقتة بنجاح", @"المراجع الذكي", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (Rslt == DialogResult.Yes) { using (DBAuditDataContext dc = new DBAuditDataContext()) { var c = dc.ProDeleteDoctorBill(ComboDocNo.Text); } MessageBox.Show(@"تمت إضافة بيانات السلفة المؤقتة بنجاح", @"المراجع الذكي", MessageBoxButtons.OK, MessageBoxIcon.Information); this.Close(); FrmModifyDoctorBill Frm = new FrmModifyDoctorBill(); Frm.Show(); } } catch (Exception EX) { MessageBox.Show(EX.Message); } }