Пример #1
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     if (DialogUtility.ShowConfirmDialog(this, "Delete?", "Are you sure you want to delete this account?"))
     {
         DeleteAccount();
     }
 }
Пример #2
0
 private bool CanExit()
 {
     if (_accountCollection != null && _isDirty)
     {
         bool result = DialogUtility.ShowConfirmDialog(this, "Exit?", "Changes have not been saved.  Are you sure you want to exit?");
         return(result);
     }
     else
     {
         return(true);
     }
 }