private void SexyOption_PointerPressed(object sender, PointerRoutedEventArgs e)
        {
            SexyOption newselect = (SexyOption)sender;

            if (newselect.Tag != selectedoption.Tag)
            {
                if (Convert.ToInt32(newselect.Tag) > Convert.ToInt32(selectedoption.Tag)) //select right
                {
                    newselect.Gainlove(true);
                    selectedoption.losslove(false);
                }
                else
                {
                    newselect.Gainlove(false);
                    selectedoption.losslove(true);
                }
                selectedoption = newselect;

                if (selectedoption.Tag.ToString() == "-1")
                {
                    SubFrame.Navigate(typeof(SingersPage), null, new SuppressNavigationTransitionInfo());
                }
                else
                {
                    SubFrame.Navigate(typeof(SongsPage), selectedoption.Tag.ToString(), new SuppressNavigationTransitionInfo());
                }
            }
        }
        private void General_stp_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            RemoveSelection();
            SelectStP(sender);
            General_Settings page = new General_Settings(this);

            SubFrame.Navigate(page);
        }
        private void HomePage_stp_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            RemoveSelection();
            SelectStP(sender);
            HomePage_Settings page = new HomePage_Settings();

            SubFrame.Navigate(page);
        }
        public Settings()
        {
            InitializeComponent();
            selectedStP = General_stp;
            General_Settings page = new General_Settings(this);

            SubFrame.Navigate(page);
            SetTheme();
        }
        void InitOptions()
        {
            int i = -1;

            foreach (var optionname in options)
            {
                SexyOption option = new SexyOption(optionname)
                {
                    Tag = i.ToString()
                };
                OptionsAreas.Children.Add(option);
                option.PointerPressed += SexyOption_PointerPressed;
                i++;
            }

            selectedoption = (SexyOption)OptionsAreas.Children.First();
            selectedoption.SelectIt();
            SubFrame.Navigate(typeof(SingersPage));
        }
Example #6
0
 private void DeleteRoleButton_Click(object sender, RoutedEventArgs e)
 {
     UserPages.DeleteRolePage deleteRolePage = new UserPages.DeleteRolePage();
     SubFrame.Navigate(deleteRolePage);
 }
Example #7
0
 private void AddRoleButton_Click(object sender, RoutedEventArgs e)
 {
     UserPages.AddRolePage addRolePage = new UserPages.AddRolePage();
     SubFrame.Navigate(addRolePage);
 }
Example #8
0
 private void UpdateUserButton_Click(object sender, RoutedEventArgs e)
 {
     UserPages.UpdateUserPage updateUserPage = new UserPages.UpdateUserPage();
     SubFrame.Navigate(updateUserPage);
 }
Example #9
0
 private void CheckPrivilegeButton_Click(object sender, RoutedEventArgs e)
 {
     UserPages.ShowPrivilegePage showPrivilegePage = new UserPages.ShowPrivilegePage();
     SubFrame.Navigate(showPrivilegePage);
 }
Example #10
0
 private void GrantPrivilegeButton_Click(object sender, RoutedEventArgs e)
 {
     PrivilegePages.GrantPrivilegePage grantPrivilegePage = new PrivilegePages.GrantPrivilegePage();
     SubFrame.Navigate(grantPrivilegePage);
 }
Example #11
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     SubFrame.Navigate(typeof(Pages.Contact_create));
 }
 private void Page2Button_Click(object sender, RoutedEventArgs e)
 {
     SubFrame.Navigate(typeof(SubViews.SecondPage));
 }
Example #13
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     SubFrame.Navigate(typeof(Customer_create));
 }
Example #14
0
 private void OnNavigationToSubPageBButtonClick(object sender, RoutedEventArgs e)
 {
     SubFrame.Navigate(typeof(BlankPage));
 }
Example #15
0
 private void RevokeRoleOfUserButton_Click(object sender, RoutedEventArgs e)
 {
     PrivilegePages.RevokeRolePage revokeRolePage = new PrivilegePages.RevokeRolePage();
     SubFrame.Navigate(revokeRolePage);
 }
Example #16
0
 private void ListUserButton_Click(object sender, RoutedEventArgs e)
 {
     UserPages.ShowUsersPage showUsersPage = new UserPages.ShowUsersPage();
     SubFrame.Navigate(showUsersPage);
 }
Example #17
0
 public MainPage()
 {
     this.InitializeComponent();
     SubFrame.Navigate(typeof(SubPage));
 }
Example #18
0
 public void endFitness()
 {
     SubFrame.Navigate(null);
     FitnessFrame.Navigate(new Elements.FitnessScreen()); //to be changed
     fitnessAcitve = false;
 }