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);
        }
예제 #2
0
        private void Finished(object sender, RunWorkerCompletedEventArgs e)
        {
            NavigationService   navService          = NavigationService.GetNavigationService(this);
            DifficultySelection difficultySelection = new DifficultySelection();

            navService.Navigate(difficultySelection);
        }
예제 #3
0
        private void GoBack(object sender, RoutedEventArgs e)
        {
            NavigationService   navService          = NavigationService.GetNavigationService(this);
            DifficultySelection difficultySelection = new DifficultySelection();

            navService.Navigate(difficultySelection);
        }