private void butDelete_Click(object sender, EventArgs e) { if (!MsgBox.Show(this, true, "Delete?")) { return; } //try{ SupplyOrderItems.DeleteObject(ItemCur); //} //catch(ApplicationException ex){ // MessageBox.Show(ex.Message); // return; //} DialogResult = DialogResult.OK; }
private void butDelete_Click(object sender, EventArgs e) { //don't ask SupplyOrderItems.DeleteObject(SupplyOrderItemCur); DialogResult = DialogResult.OK; }