protected virtual void OnSentChanged(SentChangedEventArgs e) { if (SentChanged != null) { SentChanged(this, e); } }
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)); } }
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"); } }