private void OnStartup(object sender, StartupEventArgs e) { // Create the ViewModel and expose it using the View's DataContext GameView gameView = new GameView(new GameViewModel(true)); gameView.Show(); }
private void StartNewGame(bool playerIsWhite) { var gameView = new GameView(new GameViewModel(playerIsWhite)); gameView.Show(); }