Esempio n. 1
0
 public void DisplayStats(GameStats gameStats)
 {
     Dispatcher.Invoke(() => {
         this.NavigationService.Navigate(new NetworkedGameOverPage(gameStats.HighScores, game.UserName));
     });
     UDPGameClient.StopListening();
 }
Esempio n. 2
0
 private void GameWindow_Closed(object sender, EventArgs e)
 {
     if (gameStarted)
     {
         unstable.Close();
         neutralize.Close();
         deposit.Close();
         orbGrab.Close();
         powerup.Close();
         collapse.Close();
         ghost.Close();
         boost.Close();
         UDPGameClient.StopListening();
     }
     App.Current.MainWindow.Show();
 }