Пример #1
0
 private void ShowMessage(Object sender, MailEventArgs e)
 {
     Console.WriteLine("New mail!");
     Console.WriteLine(e.Message);
 }
Пример #2
0
 protected virtual void OnMail(MailEventArgs e)
 {
     NewMail?.Invoke(this, e);
 }