public MainWindow() { if (Process.GetProcessesByName("GamingSupervisor").Length != 1) { MessageBox.Show(this, "Gaming Supervisor is already running. Close the other instance and try again.", "Error", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK, MessageBoxOptions.DefaultDesktopOnly); Application.Current.Shutdown(); } InitializeComponent(); HideInstructions(); DescriptionToggle.IsChecked = false; Description = GUIDescription; HeroList = HeroNameItemsControl; HeroList.Visibility = Visibility.Collapsed; ParserHandler.StartInfoParsing(); DifficultySelection difficultySelection = new DifficultySelection(); GUINavigation.Navigate(difficultySelection); }
private void Finished(object sender, RunWorkerCompletedEventArgs e) { NavigationService navService = NavigationService.GetNavigationService(this); DifficultySelection difficultySelection = new DifficultySelection(); navService.Navigate(difficultySelection); }
private void GoBack(object sender, RoutedEventArgs e) { NavigationService navService = NavigationService.GetNavigationService(this); DifficultySelection difficultySelection = new DifficultySelection(); navService.Navigate(difficultySelection); }