Exemplo n.º 1
0
        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 + ""));
        }
Exemplo n.º 2
0
        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 + ""));
        }
Exemplo n.º 3
0
        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;
            }
        }
Exemplo n.º 4
0
 private void BtnReports_Click(object sender, RoutedEventArgs e)
 {
     AccountFrame.Navigate(new PageReports(NavManager.BtnReports.Content + ""));
 }
Exemplo n.º 5
0
 private void BtnClientService_Click_1(object sender, RoutedEventArgs e)
 {
     AccountFrame.Navigate(new PageClientService(NavManager.BtnClientService.Content + ""));
 }
Exemplo n.º 6
0
 private void BtnCategorys_Click_1(object sender, RoutedEventArgs e)
 {
     AccountFrame.Navigate(new PageCustumers());
 }
Exemplo n.º 7
0
 public AccountView()
 {
     this.InitializeComponent();
     AccountFrame.Navigate(typeof(MainAccountView));
     AppBarToggleButtonAccount.IsChecked = true;
 }
Exemplo n.º 8
0
 private void OrdersBtn_Click(object sender, RoutedEventArgs e)
 {
     AccountFrame.Navigate(new OrdersPage());
 }
Exemplo n.º 9
0
 private void InfoBtn_Click(object sender, RoutedEventArgs e)
 {
     AccountFrame.Navigate(new InfoPage());
 }
Exemplo n.º 10
0
 public AccountPage()
 {
     InitializeComponent();
     AccountFrame.Navigate(new InfoPage());
 }