예제 #1
0
        public MenuDemoModel(MainMenu main, StartMenu start, SettingsMenu settings)
        {
            Start = new DelegateCommand(OnStart);
            StartCasual = new DelegateCommand(OnStartCasual);
            StartNormal = new DelegateCommand(OnStartNormal);
            StartVeteran = new DelegateCommand(OnStartVeteran);
            Settings = new DelegateCommand(OnSettings);
            Exit = new DelegateCommand(OnExit);
            Back = new DelegateCommand(OnBack);

            _mainMenu = main;
            _startMenu = start;
            _settingsMenu = settings;
			
			_state = State.Main;
        }
예제 #2
0
        public MenuDemoModel(MainMenu main, StartMenu start, SettingsMenu settings)
        {
            Start        = new DelegateCommand(OnStart);
            StartCasual  = new DelegateCommand(OnStartCasual);
            StartNormal  = new DelegateCommand(OnStartNormal);
            StartVeteran = new DelegateCommand(OnStartVeteran);
            Settings     = new DelegateCommand(OnSettings);
            Exit         = new DelegateCommand(OnExit);
            Back         = new DelegateCommand(OnBack);

            _mainMenu     = main;
            _startMenu    = start;
            _settingsMenu = settings;

            _state = State.Main;
        }