Example #1
0
        public Engine(IUIDevive aController, IOrganizer aOrganizer, IMenu aMyMenu, IComunicator aComunicator)
        {
            this.Controller = aController;
            this.Organizer = aOrganizer;
            this.MyMenu = aMyMenu;
            this.Comunicator = aComunicator;
            this.currentCommand = Command.None;

            this.controller.RaiseButtonOnePressedEvent += this.HandleButtonOnePressedEvent;
            this.controller.RaiseButtonTwoPressedEvent += this.HandleButtonTwoPressedEvent;
            this.controller.RaiseButtonThreePressedEvent += this.HandleButtonThreePressedEvent;
            this.controller.RaiseButtonFourPressedEvent += this.HandleButtonFourPressedEvent;
            this.controller.RaiseButtonLeftPressedEvent += this.HandleButtonLeftPressedEvent;
            this.controller.RaiseButtonRightPressedEvent += this.HandleButtonRightPressedEvent;
            this.controller.RaiseButtonEscPressedEvnet += this.HandleButtonEscPressedEvnet;
            this.controller.RaiseButtonDeletePressedEvnet += this.HandleButtonDeletePressedEvnet;

               // TextFilesIO.ReadEntries(@"../../entries.txt", this.organizer);
        }
Example #2
0
        public Engine(IUIDevive aController, IOrganizer aOrganizer, IMenu aMyMenu, IComunicator aComunicator)
        {
            this.Controller     = aController;
            this.Organizer      = aOrganizer;
            this.MyMenu         = aMyMenu;
            this.Comunicator    = aComunicator;
            this.currentCommand = Command.None;

            this.controller.RaiseButtonOnePressedEvent    += this.HandleButtonOnePressedEvent;
            this.controller.RaiseButtonTwoPressedEvent    += this.HandleButtonTwoPressedEvent;
            this.controller.RaiseButtonThreePressedEvent  += this.HandleButtonThreePressedEvent;
            this.controller.RaiseButtonFourPressedEvent   += this.HandleButtonFourPressedEvent;
            this.controller.RaiseButtonLeftPressedEvent   += this.HandleButtonLeftPressedEvent;
            this.controller.RaiseButtonRightPressedEvent  += this.HandleButtonRightPressedEvent;
            this.controller.RaiseButtonEscPressedEvnet    += this.HandleButtonEscPressedEvnet;
            this.controller.RaiseButtonDeletePressedEvnet += this.HandleButtonDeletePressedEvnet;

            // TextFilesIO.ReadEntries(@"../../entries.txt", this.organizer);
        }