Beispiel #1
0
        static void Event()
        {
            MailManager mailManager = new MailManager();

            /*mailManager.messageReceivedHandler += Printer.MessageEventHandler;
             * mailManager.messageReceivedHandler += ConsolePrinter.MessageEventHandler;            */

            mailManager.messageReceived += Printer.MessageEventHandler;
            mailManager.messageReceived += ConsolePrinter.MessageEventHandler;

            mailManager.CheckNewMessage();

            /*mailManager.messageReceivedHandler -= ConsolePrinter.MessageEventHandler;*/
            mailManager.messageReceived -= ConsolePrinter.MessageEventHandler;


            mailManager.CheckNewMessage();
        }