public Account() { InitializeComponent(); if (CurrentUser.AccessClients == false) { BtnClients.Visibility = Visibility.Hidden; } if (CurrentUser.AccessClientsServicrs == false) { BtnClientService.Visibility = Visibility.Hidden; } if (CurrentUser.AccessServices == false) { BtnServices.Visibility = Visibility.Hidden; } NavManager.AccountFrame = AccountFrame; NavManager.BtClients = BtnClients; NavManager.BtnServices = BtnServices; NavManager.BtnClientService = BtnClientService; AccountFrame.Navigate(new PageServices(NavManager.BtnServices.Content + "")); }
public Account() { InitializeComponent(); if (CurrentUser.AccessClients == false) { BtnClients.Visibility = Visibility.Hidden; } if (CurrentUser.AccessClientsServicrs == false) { BtnClientService.Visibility = Visibility.Hidden; } //if (CurrentUser.AccessReport == false) BtnReports.Visibility = Visibility.Hidden; if (CurrentUser.AccessServices == false) { BtnServices.Visibility = Visibility.Hidden; } if (CurrentUser.PermissionName == "Администратор") { BtnCategorys1.Visibility = Visibility.Hidden; } NavManager.AccountFrame = AccountFrame; NavManager.BtClients = BtnClients; NavManager.BtnServices = BtnServices; NavManager.BtnClientService = BtnClientService; //NavManager.BtnReports = BtnReports; AccountFrame.Navigate(new PageServices(NavManager.BtnServices.Content + "")); }
private void AppBarToggleButton_OnTapped(object sender, TappedRoutedEventArgs e) { var button = (AppBarToggleButton)sender; System.Diagnostics.Debug.WriteLine(button.Name); switch (button.Name) { case "AppBarToggleButtonAccount": AppBarToggleButtonPrivacy.IsChecked = false; AppBarToggleButtonPayment.IsChecked = false; AppBarToggleButtonSecurity.IsChecked = false; AppBarToggleButtonSubscription.IsChecked = false; AccountFrame.Navigate(typeof(MainAccountView)); break; case "AppBarToggleButtonPrivacy": AppBarToggleButtonAccount.IsChecked = false; AppBarToggleButtonPayment.IsChecked = false; AppBarToggleButtonSecurity.IsChecked = false; AppBarToggleButtonSubscription.IsChecked = false; AccountFrame.Navigate(typeof(AccountPrivacyView)); break; case "AppBarToggleButtonSecurity": AppBarToggleButtonAccount.IsChecked = false; AppBarToggleButtonPrivacy.IsChecked = false; AppBarToggleButtonPayment.IsChecked = false; AppBarToggleButtonSubscription.IsChecked = false; AccountFrame.Navigate(typeof(AccountSecurityView)); break; case "AppBarToggleButtonPayment": AppBarToggleButtonAccount.IsChecked = false; AppBarToggleButtonPrivacy.IsChecked = false; AppBarToggleButtonSecurity.IsChecked = false; AppBarToggleButtonSubscription.IsChecked = false; AccountFrame.Navigate(typeof(AccountPaymentView)); break; case "AppBarToggleButtonSubscription": AppBarToggleButtonAccount.IsChecked = false; AppBarToggleButtonPrivacy.IsChecked = false; AppBarToggleButtonSecurity.IsChecked = false; AppBarToggleButtonPayment.IsChecked = false; AccountFrame.Navigate(typeof(AccountSubscriptionView)); break; } }
private void BtnReports_Click(object sender, RoutedEventArgs e) { AccountFrame.Navigate(new PageReports(NavManager.BtnReports.Content + "")); }
private void BtnClientService_Click_1(object sender, RoutedEventArgs e) { AccountFrame.Navigate(new PageClientService(NavManager.BtnClientService.Content + "")); }
private void BtnCategorys_Click_1(object sender, RoutedEventArgs e) { AccountFrame.Navigate(new PageCustumers()); }
public AccountView() { this.InitializeComponent(); AccountFrame.Navigate(typeof(MainAccountView)); AppBarToggleButtonAccount.IsChecked = true; }
private void OrdersBtn_Click(object sender, RoutedEventArgs e) { AccountFrame.Navigate(new OrdersPage()); }
private void InfoBtn_Click(object sender, RoutedEventArgs e) { AccountFrame.Navigate(new InfoPage()); }
public AccountPage() { InitializeComponent(); AccountFrame.Navigate(new InfoPage()); }