Пример #1
0
        public MainWindow()
        {
            _humanPlayer    = new HumanPlayer();
            _computerPlayer = new ComputerPlayer();
            _humanGrid      = new HumanGridVM(_humanPlayer, _computerPlayer);
            _computerGrid   = new ComputerGridVM(_humanPlayer, _computerPlayer);

            InitializeComponent();
            humanGrid.DataContext    = _humanGrid;
            computerGrid.DataContext = _computerGrid;
        }
Пример #2
0
        public MainWindow()
        {
            _humanPlayer    = new HumanPlayer();
            _computerPlayer = new ComputerPlayer();
            _humanGrid      = new HumanGridVM(_humanPlayer, _computerPlayer);
            _computerGrid   = new ComputerGridVM(_humanPlayer, _computerPlayer);

            InitializeComponent();
            _mainWindow              = this;
            humanGrid.DataContext    = _humanGrid;
            computerGrid.DataContext = _computerGrid;
            UpdateTb(0, 19);
        }