Пример #1
0
        private void GoBack(object sender, RoutedEventArgs e)
        {
            NavigationService navService        = NavigationService.GetNavigationService(this);
            GameTypeSelection gameTypeSelection = new GameTypeSelection();

            navService.Navigate(gameTypeSelection);
        }
Пример #2
0
        private void ConfirmSelection(object sender, RoutedEventArgs e)
        {
            GUISelection.customize[GUISelection.Customize.lastHit]       = (bool)LastHitToggle.IsChecked;
            GUISelection.customize[GUISelection.Customize.heroSelection] = (bool)HeroSelectionToggle.IsChecked;
            GUISelection.customize[GUISelection.Customize.itemHelper]    = (bool)ItemHelperToggle.IsChecked;
            GUISelection.customize[GUISelection.Customize.laning]        = (bool)LaningToggle.IsChecked;
            GUISelection.customize[GUISelection.Customize.jungling]      = (bool)JunglingToggle.IsChecked;
            GUISelection.customize[GUISelection.Customize.safeFarming]   = (bool)SafeFarmingAreaToggle.IsChecked;

            NavigationService navService        = NavigationService.GetNavigationService(this);
            GameTypeSelection gameTypeSelection = new GameTypeSelection();

            navService.Navigate(gameTypeSelection);
        }
Пример #3
0
        private void GoBack(object sender, RoutedEventArgs e)
        {
            NavigationService navService = NavigationService.GetNavigationService(this);

            if (GUISelection.fileName == null)
            {
                GameTypeSelection gameTypeSelection = new GameTypeSelection();
                navService.Navigate(gameTypeSelection);
            }
            else
            {
                ReplayHeroSelection replayHeroSelection = new ReplayHeroSelection();
                navService.Navigate(replayHeroSelection);
            }
        }