コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: nisodic/battleship
        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
ファイル: MainWindow.xaml.cs プロジェクト: Przegrywer/NJPO2
        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);
        }