Esempio n. 1
0
 protected virtual void OnSentChanged(SentChangedEventArgs e)
 {
     if (SentChanged != null)
     {
         SentChanged(this, e);
     }
 }
Esempio n. 2
0
 private void MailSentChanged(object sender, SentChangedEventArgs e)
 {
     if (e.Sent)
     {
         InfoBox.Show(Str_SentSuccessful, Str_ErrorReportHasBeenSent);
     }
     else
     {
         ErrorBox.Show(Str_SentFailed, new NotDetailedException(e.Exception.Message));
     }
 }
Esempio n. 3
0
 public static void EmailSentChanged(SentChangedEventArgs e)
 {
     if (e == null)
     {
         throw new ArgumentNullException("e");
     }
     if (!e.Sent)
     {
         ErrorBox.Show("E-mail sent error", new ExceptionDetails(e.Exception).Details);
     }
     else
     {
         InfoBox.Show("E-mail succesfully sent", "E-mail sent was succesfully to target e-mail address");
     }
 }