Esempio n. 1
0
 private void InitializeTicTacToeGame()
 {
     this.ticTacToeGame            = TicTacToeFactory.Create(Team.Zero);
     ticTacToeGame.ScoreChanged   += OnScoreChanged;
     ticTacToeGame.TeamAndLineWon += OnTeamAndLineWon;
     ticTacToeGame.TeamChanged    += OnTeamChanged;
 }
Esempio n. 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            var ticTacToe  = TicTacToeFactory.Create(Team.Zero);
            var mainWindow = new MainWindow(ticTacToe);

            mainWindow.ShowDialog();
        }
Esempio n. 3
0
 public MainWindow() : this(TicTacToeFactory.Create(Team.Zero))
 {
 }