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"); } }
protected virtual void OnSentChanged(SentChangedEventArgs e) { SentChanged?.Invoke(this, e); }