Пример #1
0
 public PreloaderModel(IGameWithAiModel gameWithAiModel, IGameNetServerModel gameNetServerModel, 
                       IGameNetLoginModel gameNetLoginModel, IGameNetLobbyModel gameNetLobbyModel)
 {
     // Получаем соответствующие модели через параметры.
     _gameWithAiModel = gameWithAiModel;
     _gameNetServerModel = gameNetServerModel;
     _gameNetLoginModel = gameNetLoginModel;
     _gameNetLobbyModel = gameNetLobbyModel;
 } // GamePreloaderModel
        public GameWithAiViewModel(IGameWithAiModel gameWithAiModel)
        {
            _gameWithAiModel = gameWithAiModel;
            InfoPanelVisibility = 0;
            IsCheckInfoPanel = true;

            StatusText = "";
            TimePassed = "00:00:00";

            //***** СОЗДАНИЕ КОМАНД *****//
            ExitCommand = new RelayCommand(Exit);
            ExitToMenuCommand = new RelayCommand(ExitToMenu);
            NewGameCommand = new RelayCommand(NewGame);
            InfoPanelCommand = new RelayCommand(InfoPanel);
            AboutCommand = new RelayCommand(About);
        } // GameWithAiViewModel