public BaseGameViewModel(GameManager gameManager, InfoPanelViewModel infoPanelVM) { this.gameManager = gameManager; this.infoPanelVM = infoPanelVM; HandVM = new HandViewModel(this); CurrentGameState = GameState.BIDDING; }
public PlayCommand(HandViewModel handViewModel) { this.handViewModel = handViewModel; handViewModel.mainViewModel.PropertyChanged += (sender, args) => { if (CanExecuteChanged != null) { CanExecuteChanged(this, new System.EventArgs()); } }; }