Пример #1
0
        static void Main(string[] args)
        {
            MailManager mm  = new MailManager();
            Fax         fax = new Fax(mm);

            mm.SimulateNewMail("Robert", "Mike", "This is a test subject!");
        }
Пример #2
0
 public Fax(MailManager mm)
 {
     mm.NewMail += FaxMsg;
 }
Пример #3
0
 public void UnRegister(MailManager mm)
 {
     mm.NewMail -= FaxMsg;
 }