Esempio n. 1
0
        private void NavigateButton_Click(object sender, RoutedEventArgs e)
        {
            Click();
            Button b = (Button)sender;

            OptionsButton.Visibility = Visibility.Visible;
            if (b.Name.Equals("UpgradesButton"))
            {
                InnerFrame.Navigate(typeof(UpgradesPage), Data);
            }
            else if (b.Name.Equals("SpecialButton"))
            {
                InnerFrame.Navigate(typeof(SpecialPage), Data);
            }
            else if (b.Name.Equals("StatsButton"))
            {
                InnerFrame.Navigate(typeof(StatsPage), Data);
            }
            else if (b.Name.Equals("AchievementsButton"))
            {
                InnerFrame.Navigate(typeof(AchievementsPage), Data);
            }
            else if (b.Name.Equals("OptionsButton"))
            {
                InnerFrame.Navigate(typeof(OptionsPage), Data);
                OptionsButton.Visibility = Visibility.Collapsed;
            }
            BackButton.Visibility = Visibility.Visible;
        }
Esempio n. 2
0
 private void Button_Click_2(object sender, RoutedEventArgs e)
 {
     InnerFrame.Navigate(typeof(BlankSubPage2));
     this.GoBackButton.IsEnabled = InnerFrame.BackStack.Any();
     SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = InnerFrame.BackStack.Any() ?
                                                                               AppViewBackButtonVisibility.Visible : AppViewBackButtonVisibility.Collapsed;
 }
Esempio n. 3
0
 public MainPage()
 {
     this.InitializeComponent();
     InnerFrame.Navigate(typeof(Financial));
     text.Text             = "  Financial  ";
     BackButton.Visibility = Visibility.Collapsed;
 }
Esempio n. 4
0
 private void BackButton_Click(object sender, RoutedEventArgs e)
 {
     Click();
     InnerFrame.Navigate(typeof(ButtonPage), Data);
     BackButton.Visibility    = Visibility.Collapsed;
     OptionsButton.Visibility = Visibility.Visible;
 }
Esempio n. 5
0
 private void IconsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (ItemsListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(ItemPage));
         ToItems();
     }
 }
Esempio n. 6
0
 private void IconsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (FinancialListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(Financial));
         ToFinancial();
     }
     else if (FoodListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(Food));
         ToFood();
     }
 }
Esempio n. 7
0
 private void IconsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (FinancialListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(Financial));
         BackButton.Visibility = Visibility.Collapsed;
         Title.Text            = "Financial";
     }
     else if (FoodListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(Food));
         BackButton.Visibility = Visibility.Visible;
         Title.Text            = "Food";
     }
 }
Esempio n. 8
0
 private void IconsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (EPICListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(EPIC));
     }
     else if (LearnYourselfListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(Learn_Yourself));
     }
     else if (WelcomeListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(Welcome));
         WelcomeListBoxItem.IsSelected = false;
     }
 }
Esempio n. 9
0
 public MainPage()
 {
     this.InitializeComponent();
     Data.CommitsClickIncrement = 1;
     Data.Commits          = 0;
     Data.CommitsPerSecond = 0;
     Data.Specialpoints    = 0;
     InnerFrame.Navigate(typeof(ButtonPage), Data);
     BackButton.Visibility = Visibility.Collapsed;
     timer          = new DispatcherTimer();
     timer.Interval = new TimeSpan(0, 0, 0, 1);
     timer.Tick    += DispatcherTimer_Tick;
     timer.Start();
     PopupText.Text      = "Click on the Gear on the \nbottom left for instructions.";
     PopupTitleText.Text = "Welcome to CommitClicker!";
     Popup.IsOpen        = true;
 }
Esempio n. 10
0
 private void IconsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (HomeListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(Home));
         Title.Text = "Home";
     }
     else if (InfoListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(Info));
         Title.Text = "Info";
     }
     else if (SettingsListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(Settings));
         Title.Text = "Play";
     }
     SettingsListBoxItem.IsSelected = false;
 }
Esempio n. 11
0
 /// <summary>
 /// Navigates between pages when their corresponding item is selected.
 /// </summary>
 private void IconsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if (CalculatorListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(Calculator), currentUser);
         LocationTextBlock2.Visibility = Visibility.Collapsed;
         LocationTextBlock3.Visibility = Visibility.Collapsed;
         LocationTextBlock.Visibility  = Visibility.Visible;
     }
     else if (HistoryListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(History), currentUser);
         LocationTextBlock2.Visibility = Visibility.Visible;
         LocationTextBlock3.Visibility = Visibility.Collapsed;
         LocationTextBlock.Visibility  = Visibility.Collapsed;
     }
     else if (SettingsListBoxItem.IsSelected)
     {
         InnerFrame.Navigate(typeof(Settings), currentUser);
         LocationTextBlock2.Visibility = Visibility.Collapsed;
         LocationTextBlock3.Visibility = Visibility.Visible;
         LocationTextBlock.Visibility  = Visibility.Collapsed;
     }
 }
Esempio n. 12
0
 private void ScheduleClick(object sender, RoutedEventArgs e)
 {
     InnerFrame.Navigate(typeof(SchedulePage));
 }
Esempio n. 13
0
 private void DonutClick(object sender, RoutedEventArgs e)
 {
     InnerFrame.Navigate(typeof(DonutPage));
 }
Esempio n. 14
0
 public NavigationFlow()
 {
     InitializeComponent();
     // Inner frame used to contain source and destination pages
     InnerFrame.Navigate(typeof(NavigationFlowSourcePage));
 }
Esempio n. 15
0
 private void CoffeePageButton_Click(object sender, RoutedEventArgs e)
 {
     InnerFrame.Navigate(typeof(CoffeePage));
 }
Esempio n. 16
0
 private void BackButton_Click(object sender, RoutedEventArgs e)
 {
     text.Text             = "  Financial  ";
     BackButton.Visibility = Visibility.Collapsed;
     InnerFrame.Navigate(typeof(Financial));
 }
Esempio n. 17
0
 public MainPage()
 {
     this.InitializeComponent();
     InnerFrame.Navigate(typeof(SearchPage), sharedData);
 }
Esempio n. 18
0
 private void CompleteClick(object sender, RoutedEventArgs e)
 {
     InnerFrame.Navigate(typeof(CompletePage));
 }
Esempio n. 19
0
 /// <summary>
 /// Invoked when the page is nagivated to, and initializes the user's data and displays
 /// the <c>History</c> page first.
 /// </summary>
 /// <param name="e">CurrentUser object</param>
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     currentUser = (CurrentUser)e.Parameter;
     InnerFrame.Navigate(typeof(History), currentUser);
 }
Esempio n. 20
0
 public MainPage()
 {
     this.InitializeComponent();
     InnerFrame.Navigate(typeof(LoginPage));
 }
Esempio n. 21
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     InnerFrame.Navigate(typeof(BlankSubPage1));
     this.GoBackButton.IsEnabled = InnerFrame.BackStack.Any();
 }