Esempio 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);
            }
        }
        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);
            }
        }