Beispiel #1
0
 public Window1()
 {
     InitializeComponent();
     gameViewModel = new GameViewModel();
     gameManager.DataContext = gameViewModel;
     gameViewModel.IsGameOver.PropertyChanged += GameOverEvent;
 }
Beispiel #2
0
 private void Rematch()
 {
     gameViewModel = new GameViewModel();
     gameManager.DataContext = gameViewModel;
     gameViewModel.IsGameOver.PropertyChanged += GameOverEvent;
     CloseMenu(null, null);
 }