Пример #1
0
 private void NewGameTwoPlayerCommand_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     TwoPlayerGameController gameController = new TwoPlayerGameController(gameGrid, gameOptions.SelectedIconSet);
     borderPlayer1.DataContext = gameController.Player1;
     borderPlayer2.DataContext = gameController.Player2;
     this.gameController = gameController;
     gameController.StartGame();
 }
Пример #2
0
 private void TwoPlayer_Click(object sender, RoutedEventArgs e)
 {
     TwoPlayerGameController gameController = new TwoPlayerGameController(gameGrid, gameOptions.SelectedIconSet);
     borderPlayer1.DataContext = gameController.Player1;
     borderPlayer2.DataContext = gameController.Player2;
     this.gameController = gameController;
     gameController.StartGame();
 }