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