Пример #1
0
 private void butDelete_Click(object sender, EventArgs e)
 {
     if (!MsgBox.Show(this, true, "Delete this prescription template?"))
     {
         return;
     }
     RxDefs.Delete(RxDefCur);
     DialogResult = DialogResult.OK;
 }
Пример #2
0
 private void FormRxDefEdit_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (DialogResult == DialogResult.OK)
     {
         return;                //close as normal
     }
     if (IsNew)
     {
         RxDefs.Delete(RxDefCur);
     }
 }