private void GameCompleteEventHandler(GameHistory gameBoard)
 {
     CanConfigureGrid = true;
     GameStateMessage = StartSimulationMessage;
 }
        protected override void Initialize()
        {
            _gameHistory = new GameHistory();

            _gameHistory.ToatlColumns= 30;
            _gameHistory.TotalRows= 20;
            _gameHistory.TotalGenerations= 50;
            _canConfigureGrid = true;
            _gameStateMessage = StartSimulationMessage;
            _gameBoardLayout = _unityContainer.Resolve<Board>();
            _gameStopSubsriptionToken = AppEventAggregator.GetEvent<GameCompleteEvent>().Subscribe(GameCompleteEventHandler);
            TriggerGame = new DelegateCommand(TriggerGameAction, CanTriggerGame);
            ConfigureBoard();
        }
Esempio n. 3
0
 private void GameStopEventHandler(GameHistory gameHistory)
 {
     _isGameCancelled = true;
 }
Esempio n. 4
0
 private void GameStopEventHandler(GameHistory obj)
 {
     IsGameBoardVisisble = false;
     IsGameConfigurable = true;
 }
Esempio n. 5
0
 private void GameStartEventHandler(GameHistory gameHistory)
 {
     _gameHistory = gameHistory;
     GameBoard = _gameHistory.GameBoard;
     TotalGeneration = _gameHistory.TotalGenerations;
     RunGame();
 }