Ejemplo n.º 1
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            AuthorizeDialog     authorizeDialog = new AuthorizeDialog();
            ContentDialogResult result          = await authorizeDialog.ShowAsync();

            if (result == ContentDialogResult.Primary)
            {
                ConnectionLine.Text = ApplicationContext.getConnectionLine();
                TitleTextBlock.Text = "Доступ";
                //myFrame.Navigate(typeof(AccessesPage), this);
            }
        }
Ejemplo n.º 2
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            AuthorizeDialog     authorizeDialog = new AuthorizeDialog();
            ContentDialogResult result          = await authorizeDialog.ShowAsync();

            if (result == ContentDialogResult.Primary)
            {
                ConnectionLine.Text = ApplicationContext.getConnectionLine() + " ver. " + VersionUtil.GetAppVersion();
                TitleTextBlock.Text = "База знаний";
                myFrame.Navigate(typeof(KnowPage), this);
            }
        }