예제 #1
0
        static void Main(string[] args)
        {
            MailManager mm = new MailManager();
            Fax         f  = new Fax(mm);
            Print       p  = new Print(mm);

            mm.SimulateNewMail(123, "su");
        }
예제 #2
0
 public Print(MailManager m)
 {
     m.NewMail += new NewMailEventHandler(Print_NewMail);
 }
예제 #3
0
 public void Unregister(MailManager m)
 {
     m.NewMail -= new NewMailEventHandler(Print_NewMail);
 }
예제 #4
0
 public Fax(MailManager m)
 {
     m.NewMail += new NewMailEventHandler(Fax_NewMail);
 }