public MainWindowViewModel() { //var initialGameViewModel = new GameViewModel(); OpponentBoardViewModel initialGameViewModel = new OpponentBoardViewModel(); this.currentGamePageViewModel = initialGameViewModel; }
protected BaseUIManager(IGamePage gamePage) { _gamePage = gamePage; _gamePage.Ready += (s, e) => Ready.Invoke(this, EventArgs.Empty); _gamePage.Moved += (s, e) => _moveHandler(e.Direction); }
public GamePageController(IGamePage form) { _form = form; _gameDAO = new GameDAO(); _game = new Game(); }