Exemple #1
0
        public BiddingViewModel(BaseGameViewModel baseVM)
        {
            bidCommand = new BidCommand(this);
            this.baseVM = baseVM;

            baseVM.PropertyChanged += (sender, e) => PropChanged();
        }
Exemple #2
0
        public MainWindow()
        {
            InitializeComponent();

            GameManager gameManager = new GameManager();

            var infoPanelVM = new InfoPanelViewModel(gameManager);
            InfoPanel.DataContext = infoPanelVM;


            //round
            model = new BaseGameViewModel(gameManager, infoPanelVM);
            model.GameStateChanged += OnGameStateChanged;

            Whist.DataContext = model;
            BiddingView.DataContext = new BiddingViewModel(model);
            labelC1.DataContext = model;
            labelC2.DataContext = model;
            labelC3.DataContext = model;
            ActionLog.DataContext = infoPanelVM;
        }
Exemple #3
0
 public HandViewModel(BaseGameViewModel mainViewModel)
 {
     this.mainViewModel = mainViewModel;
     this.playCmd = new PlayCommand(this);
 }