예제 #1
0
        public static void Main(string[] args)
        {
            MailMngr mm    = new MailMngr();
            Fax      fax   = new Fax(mm);
            Pager    pager = new Pager(mm);

            mm.SimulateArrivingMsg(
                "*****@*****.**",
                "*****@*****.**",
                "Inappropriate workplace behaviour",
                "Hey Dana, Jeff said you flashed him again. As your supervisor I find it highly inappropriate that you flash him before you flash me."
                );
        }
예제 #2
0
파일: Fax.cs 프로젝트: slimakim/StudyRoll
 /// <summary>
 /// Initializes a new instance of the <see cref="T:MailManager.Fax"/> class.
 /// </summary>
 /// <param name="mm">Mm.</param>
 public Fax(MailMngr mm)
 {
     mm.MailMsg += FaxMsg;
 }
예제 #3
0
파일: Fax.cs 프로젝트: slimakim/StudyRoll
 public void Unregister(MailMngr mm)
 {
     mm.MailMsg -= FaxMsg;
 }
예제 #4
0
 public Pager(MailMngr mm)
 {
     mm.MailMsg += PageMsg;
 }
예제 #5
0
 public void Unregister(MailMngr mm)
 {
     mm.MailMsg -= PageMsg;
 }