void Print_NewMail(object o, NewMailEvent e) { Console.WriteLine("Print's EventMessage is {0},'{1}'", e.i, e.s); }
public void SimulateNewMail(int i, string s) { NewMailEvent e = new NewMailEvent(i, s); OnNewMail(e); }
void Fax_NewMail(object o, NewMailEvent e) { Console.WriteLine("Fax's EventMessage is {0},'{1}'", e.i, e.s); }
public virtual void OnNewMail(NewMailEvent e) { NewMail?.Invoke(this, e); }