Example #1
0
        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();
        }
Example #2
0
 private void StartNewGame(bool playerIsWhite)
 {
     var gameView = new GameView(new GameViewModel(playerIsWhite));
     gameView.Show();
 }