private void EventManager_NewMail(object sender, NewMailEventArgs e)
 {
     DeliverEvent(sender, e);
 }
        public void SimulateNewMail(string from, string to, string subject)
        {
            NewMailEventArgs e = new NewMailEventArgs(from, to, subject);

            OnNewMail(e);
        }
Example #3
0
 public void FaxMsg(Object sender, NewMailEventArgs e)
 {
     Console.WriteLine($"{e.From}   {e.To}   {e.Subject}");
 }
 public virtual void OnNewMail(NewMailEventArgs e)
 {
     e.Raise(this, ref NewMail);
 }