private void Button_Click(object sender, RoutedEventArgs e)
        {
            var userPrincipal = new ObservatoryPrincipal(LoginTB.Text, PasswordB.Password);

            if (userPrincipal.Identity.IsAuthenticated)
            {
                var viewCatalog = new ViewCatalog();
                NavigationService.Navigate(viewCatalog);
                viewCatalog.AGalaxyControl.ButtonsPanel.Visibility = Visibility.Visible;
                viewCatalog.AStarControl.ButtonsPanel.Visibility   = Visibility.Visible;
                viewCatalog.APlanetControl.ButtonsPanel.Visibility = Visibility.Visible;
            }
        }
Exemple #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            switch (loadingTypesListBox.SelectedIndex)
            {
            case 0:
                var viewCatalog = new ViewCatalog();
                NavigationService.Navigate(viewCatalog);
                break;

            case 1:
                var authorizationPage = new AuthorizationPage();
                NavigationService.Navigate(authorizationPage);
                break;
            }
            loadingTypesListBox.SelectedIndex = -1;
        }