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)); }
private void DeleteRoleButton_Click(object sender, RoutedEventArgs e) { UserPages.DeleteRolePage deleteRolePage = new UserPages.DeleteRolePage(); SubFrame.Navigate(deleteRolePage); }
private void AddRoleButton_Click(object sender, RoutedEventArgs e) { UserPages.AddRolePage addRolePage = new UserPages.AddRolePage(); SubFrame.Navigate(addRolePage); }
private void UpdateUserButton_Click(object sender, RoutedEventArgs e) { UserPages.UpdateUserPage updateUserPage = new UserPages.UpdateUserPage(); SubFrame.Navigate(updateUserPage); }
private void CheckPrivilegeButton_Click(object sender, RoutedEventArgs e) { UserPages.ShowPrivilegePage showPrivilegePage = new UserPages.ShowPrivilegePage(); SubFrame.Navigate(showPrivilegePage); }
private void GrantPrivilegeButton_Click(object sender, RoutedEventArgs e) { PrivilegePages.GrantPrivilegePage grantPrivilegePage = new PrivilegePages.GrantPrivilegePage(); SubFrame.Navigate(grantPrivilegePage); }
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)); }
private void Button_Click(object sender, RoutedEventArgs e) { SubFrame.Navigate(typeof(Customer_create)); }
private void OnNavigationToSubPageBButtonClick(object sender, RoutedEventArgs e) { SubFrame.Navigate(typeof(BlankPage)); }
private void RevokeRoleOfUserButton_Click(object sender, RoutedEventArgs e) { PrivilegePages.RevokeRolePage revokeRolePage = new PrivilegePages.RevokeRolePage(); SubFrame.Navigate(revokeRolePage); }
private void ListUserButton_Click(object sender, RoutedEventArgs e) { UserPages.ShowUsersPage showUsersPage = new UserPages.ShowUsersPage(); SubFrame.Navigate(showUsersPage); }
public MainPage() { this.InitializeComponent(); SubFrame.Navigate(typeof(SubPage)); }
public void endFitness() { SubFrame.Navigate(null); FitnessFrame.Navigate(new Elements.FitnessScreen()); //to be changed fitnessAcitve = false; }