Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            MailService.GetInstance();

            SetConsoleGraphics();
            new WelcomeMenu().Display();
            new MainMenu().Display();
            OrderConfirmation.GetInstance().Initialize();
        }
Ejemplo n.º 2
0
        internal static MailService GetInstance()
        {
            Logger.Info("Instantiated MailService");
            if (_instance == null)
            {
                _instance = new MailService();
                Registration.GetInstance().UserRegistered      += _instance.OnUserRegistered;
                OrderConfirmation.GetInstance().OrderConfirmed += _instance.OnOrderConfirmed;
                OrderConfirmation.GetInstance().OrderPrepared  += _instance.OnOrderPrepared;
            }

            return(_instance);
        }