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());
                }
            }
        }
Exemplo n.º 2
0
        private void General_stp_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            RemoveSelection();
            SelectStP(sender);
            General_Settings page = new General_Settings(this);

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

            SubFrame.Navigate(page);
        }
Exemplo n.º 4
0
        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));
        }
Exemplo n.º 6
0
 private void DeleteRoleButton_Click(object sender, RoutedEventArgs e)
 {
     UserPages.DeleteRolePage deleteRolePage = new UserPages.DeleteRolePage();
     SubFrame.Navigate(deleteRolePage);
 }
Exemplo n.º 7
0
 private void AddRoleButton_Click(object sender, RoutedEventArgs e)
 {
     UserPages.AddRolePage addRolePage = new UserPages.AddRolePage();
     SubFrame.Navigate(addRolePage);
 }
Exemplo n.º 8
0
 private void UpdateUserButton_Click(object sender, RoutedEventArgs e)
 {
     UserPages.UpdateUserPage updateUserPage = new UserPages.UpdateUserPage();
     SubFrame.Navigate(updateUserPage);
 }
Exemplo n.º 9
0
 private void CheckPrivilegeButton_Click(object sender, RoutedEventArgs e)
 {
     UserPages.ShowPrivilegePage showPrivilegePage = new UserPages.ShowPrivilegePage();
     SubFrame.Navigate(showPrivilegePage);
 }
Exemplo n.º 10
0
 private void GrantPrivilegeButton_Click(object sender, RoutedEventArgs e)
 {
     PrivilegePages.GrantPrivilegePage grantPrivilegePage = new PrivilegePages.GrantPrivilegePage();
     SubFrame.Navigate(grantPrivilegePage);
 }
Exemplo n.º 11
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     SubFrame.Navigate(typeof(Pages.Contact_create));
 }
Exemplo n.º 12
0
 private void Page2Button_Click(object sender, RoutedEventArgs e)
 {
     SubFrame.Navigate(typeof(SubViews.SecondPage));
 }
Exemplo n.º 13
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     SubFrame.Navigate(typeof(Customer_create));
 }
Exemplo n.º 14
0
 private void OnNavigationToSubPageBButtonClick(object sender, RoutedEventArgs e)
 {
     SubFrame.Navigate(typeof(BlankPage));
 }
Exemplo n.º 15
0
 private void RevokeRoleOfUserButton_Click(object sender, RoutedEventArgs e)
 {
     PrivilegePages.RevokeRolePage revokeRolePage = new PrivilegePages.RevokeRolePage();
     SubFrame.Navigate(revokeRolePage);
 }
Exemplo n.º 16
0
 private void ListUserButton_Click(object sender, RoutedEventArgs e)
 {
     UserPages.ShowUsersPage showUsersPage = new UserPages.ShowUsersPage();
     SubFrame.Navigate(showUsersPage);
 }
Exemplo n.º 17
0
 public MainPage()
 {
     this.InitializeComponent();
     SubFrame.Navigate(typeof(SubPage));
 }
Exemplo n.º 18
0
 public void endFitness()
 {
     SubFrame.Navigate(null);
     FitnessFrame.Navigate(new Elements.FitnessScreen()); //to be changed
     fitnessAcitve = false;
 }