private void ShowMessage(Object sender, MailEventArgs e) { Console.WriteLine("New mail!"); Console.WriteLine(e.Message); }
protected virtual void OnMail(MailEventArgs e) { NewMail?.Invoke(this, e); }