Exemplo n.º 1
0
 public static void EmailSentChanged(SentChangedEventArgs e)
 {
     if (e == null)
     {
         throw new ArgumentNullException(nameof(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");
     }
 }
Exemplo n.º 2
0
 protected virtual void OnSentChanged(SentChangedEventArgs e)
 {
     SentChanged?.Invoke(this, e);
 }