private void ExitHelp_Click(object sender, RoutedEventArgs e) { //this.Close(); SoundManager.playSFX(SoundManager.SoundType.Click); MenuPage menu = new MenuPage(); NavigationService.Navigate(menu); }
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); } }
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) { } }
private void GoBackButton_Click(object sender, RoutedEventArgs e) { MenuPage menu = new MenuPage(); NavigationService.Navigate(menu); }