コード例 #1
0
        static void Main(string[] args)
        {
            MailManager mm  = new MailManager();
            Fax         fax = new Fax(mm);
            Printer     prn = new Printer(mm);

            mm.SimulateMailArrived("Maria", "Marco", "cena", "Usciamo stasera?"); // simulo arrivo mail
            mm.SimulateMailArrived("Marco", "Maria", "cena", "Lavoro");
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: serec933/Academy_10
        static void Main(string[] args)
        {
            MailManager mm      = new MailManager();
            Fax         fax     = new Fax(mm);
            Printer     printer = new Printer(mm);



            mm.SimulateMailArrived("serena", "Francesca", "salutoni", "tanti saluti,baci baci");
            mm.SimulateMailArrived("Francesca", "Serena", "salutoni", "tanti saluti a te,baci baci");
        }
コード例 #3
0
        static void Main(string[] args)
        {
            MailManager mm = new MailManager();

            Fax     fax = new Fax(mm);
            Printer prn = new Printer(mm);

            mm.SimulateMailArrived("Topolino", "Minni", "Cena", "Usciamo stasera?");
            mm.SimulateMailArrived("Minni", "Topolino", "Cena", "No esco con Pippo");
            System.Console.ReadLine();
        }