Beispiel #1
0
 public void ExceptionNotify(Exception e, string message)
 {
     if (this.InvokeRequired)
     {
         ExceptionAlertDelegate del = new ExceptionAlertDelegate(ExceptionNotify);
         this.Invoke(del, new object[] { e, message });
     }
     else
     {
         DialogResult choice = MessageBox.Show(e.Message, message, MessageBoxButtons.RetryCancel);
         if (choice == DialogResult.Cancel)
         {
             forceClose();
             return;
         }
         else
         {
             return;
         }
     }
 }
Beispiel #2
0
 public void ExceptionNotify(Exception e, string message)
 {
     if (this.InvokeRequired)
     {
         ExceptionAlertDelegate del = new ExceptionAlertDelegate(ExceptionNotify);
         this.Invoke(del, new object[] { e, message });
     }
     else
     {
         DialogResult choice = MessageBox.Show(e.Message, message, MessageBoxButtons.RetryCancel);
         if (choice == DialogResult.Cancel)
         {
             forceClose();
             return;
         }
         else {
             return;
         }
     }
 }