public ChooseDifficultyPage() { this.InitializeComponent(); this.SizeChanged += (s, e) => { Reversi.SetView(this.filledView, this.filledView, this.filledView, this.snapView); }; }
public CreditsPage() { this.InitializeComponent(); this.SizeChanged += (s, e) => { Reversi.SetView(this.unsnappedView, this.unsnappedView, this.unsnappedView, this.snapView); }; }
public GamePage() { this.InitializeComponent(); this.SizeChanged += (s, e) => { Reversi.SetView(this.unsnappedView, this.unsnappedView, this.unsnappedView, this.snapView); }; tickHandler = new EventHandler <object>(dispatcherTimer_Tick); boardUpdatedHandler = new EventHandler <GameUpdateArgs>(game_BoardUpdated); gameOverHandler = new EventHandler(game_GameOver); timer.Tick += tickHandler; }