Example #1
0
 private void butDelete_Click(object sender, EventArgs e)
 {
     if (PopupCur.IsNew)
     {
         DialogResult = DialogResult.Cancel;
         return;
     }
     //don't ask user to make it go faster.
     Popups.DeleteObject(PopupCur);
     DialogResult = DialogResult.OK;
 }