示例#1
0
 public BaseGameViewModel(GameManager gameManager, InfoPanelViewModel infoPanelVM)
 {
     this.gameManager = gameManager;
     this.infoPanelVM = infoPanelVM;
     HandVM = new HandViewModel(this);
     CurrentGameState = GameState.BIDDING;
 }
示例#2
0
            public PlayCommand(HandViewModel handViewModel)
            {
                this.handViewModel = handViewModel;

                handViewModel.mainViewModel.PropertyChanged += (sender, args) =>
                {
                    if (CanExecuteChanged != null)
                    {
                        CanExecuteChanged(this, new System.EventArgs());
                    }
                };
            }