예제 #1
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            CoreApplicationViewTitleBar coreTitleBar = AppTitleBar.InitHeaderBar();

            coreTitleBar.LayoutMetricsChanged += CoreTitleBar_LayoutMetricsChanged;


            // disabling back button
            var frame = this.Frame;

            frame.BackStack.Clear();

            var t = ProjectPad.Business.ProjectPadApplication.Instance.HasToken;

            if (!t)
            {
                // starts animation for login
                StartNonConnected.Begin();
            }
            else
            {
            }

            if (App.ActivatedProject != null)
            {
                string s = App.ActivatedProject;
                App.ActivatedProject = null;
                await OpenProject(s);
            }
        }
예제 #2
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            CoreApplicationViewTitleBar coreTitleBar = AppTitleBar.InitHeaderBar();

            await RefreshCultureCombo();
            await RefreshAdoPanel();

            KeyboardAccelerator GoBack = new KeyboardAccelerator();

            GoBack.Key      = VirtualKey.GoBack;
            GoBack.Invoked += GoBack_Invoked;
            SystemNavigationManager.GetForCurrentView().BackRequested += SettingsPage_BackRequested;
        }
예제 #3
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            var anim = ConnectedAnimationService.GetForCurrentView().GetAnimation("pageTitleAnimation");

            if (anim != null)
            {
                anim.TryStart(stkTitrePage);
            }

            txtProjectName.Focus(FocusState.Keyboard);
            Bindings.Update();
            txtProjectName.SelectAll();

            CoreApplicationViewTitleBar coreTitleBar = AppTitleBar.InitHeaderBar();
        }
예제 #4
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            CoreApplicationViewTitleBar coreTitleBar = AppTitleBar.InitHeaderBar();

            await ProjectPadApplication.Instance.RefreshRecent();

            var rct = ProjectPadApplication.Instance.RecentProjects;

            RecentProjects = rct;
            Bindings.Update();

            if (e.Parameter != null && e.Parameter is ShareOperation)
            {
                await HandleDataShare(e.Parameter as ShareOperation);
            }
            else
            {
            }
        }