예제 #1
0
 private void ExitHelp_Click(object sender, RoutedEventArgs e)
 {
     //this.Close();
     SoundManager.playSFX(SoundManager.SoundType.Click);
     MenuPage menu = new MenuPage();
     NavigationService.Navigate(menu);
 }
예제 #2
0
 private void GameOverYesButton_Click(object sender, RoutedEventArgs e)
 {
     if (networkUtil != null)
     {
         networkUtil.stop();
     }
     Message.IsOpen = false;
     if (gameOptions._TypeOfGame == GameOptions.TypeOfGame.Campaign)
     {
         MapPage map = new MapPage(gameOptions);
         NavigationService.Navigate(map);
     }
     else
     {
         MenuPage menu = new MenuPage();
         NavigationService.Navigate(menu);
     }
 }
예제 #3
0
 private void PeerDisconnected(object sender, EventArgs e)
 {
     this.Dispatcher.BeginInvoke(new Action(delegate()
     {
         networkUtil.stop();
         MenuPage menu = new MenuPage();
         NavigationService.Navigate(menu);
     }));
 }
 private void GoToNext(object sender, EventArgs e)
 {
     try
     {
         MenuPage menu = new MenuPage();
         NavigationService.Navigate(menu);
     }
     catch (Exception err)
     {
     }
 }
예제 #5
0
 private void GoBackButton_Click(object sender, RoutedEventArgs e)
 {
     MenuPage menu = new MenuPage();
     NavigationService.Navigate(menu);
 }