public PlayingFieldViewModel() { CreatingCells(); IdentifyNeighbours(); playGameCommand = new PlayGameCommand(PlayGame); pauseGameCommand = new PauseGameCommand(PauseGame); restartGameCommand = new RestartGameCommand(RestartGame); }
private void updateButtonCanExecute() { StartGameCommand.RaiseCanExecuteChanged(); StopGameCommand.RaiseCanExecuteChanged(); PauseGameCommand.RaiseCanExecuteChanged(); }