private void ButtonDelete_Click(object sender, EventArgs e) { if (MessageBox.Show("هل تريد الحذف بالفعل ؟", "تأكيد الحذف", MessageBoxButtons.YesNo) == DialogResult.Yes) { _ClassDelete.DeleteOpration(new string[] { TableHustingCauseways.ID }, new string[] { NodeID }, "TableHustingCauseways", true); FormHustingCauseways_Load(sender, e); } }
private void ButtonDelete_Click(object sender, EventArgs e) { try { if (MessageBox.Show("هل تريد الحذف بالفعل ؟", "تأكيد الحذف", MessageBoxButtons.YesNo) == DialogResult.Yes) { _ClassDelete.DeleteOpration(new string[] { TableCostCenter.ID }, new string[] { NodeID }, "TableCostCenter", true); FormCostCenter_Load(sender, e); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }