static void Main(string[] args) { MailManager mm = new MailManager(); Fax f = new Fax(mm); Print p = new Print(mm); mm.SimulateNewMail(123, "su"); }
public Print(MailManager m) { m.NewMail += new NewMailEventHandler(Print_NewMail); }
public void Unregister(MailManager m) { m.NewMail -= new NewMailEventHandler(Print_NewMail); }
public Fax(MailManager m) { m.NewMail += new NewMailEventHandler(Fax_NewMail); }