Exemplo n.º 1
0
        public MenuModel()
        {
            _displayController = ClassLocator.GetInstance <IDisplayController>();
            Debug.Assert(_displayController != null, "IDisplayController not found for MenuModel");

            MenuButtonCommands = new List <IButtonModel>()
            {
                new MenuButtonModel("Home", (s, a) =>
                {
                    _displayController.RevertDisplay();
                }),
                new MenuButtonModel("About", (s, a) =>
                {
                    _displayController.ChangeDisplay(typeof(IAboutViewModel), DisplayActionTypes.PushPreviousDisplay, true);
                }),
                new MenuButtonModel("Configuraton", (s, a) =>
                {
                    _displayController.ChangeDisplay(typeof(IConfigurationViewModel), DisplayActionTypes.PushPreviousDisplay, true);
                }),
            };
        }
Exemplo n.º 2
0
 public void AboutOkCommand(object sender, CommandArgs a)
 {
     _displayController.RevertDisplay();
 }