コード例 #1
0
        protected override void OnNavigatedTo(
            bool cancelled, NavigationEventArgs e)
        {
            _moved = false;

            if (cancelled)
            {
                _moved = true;
                return;
            }

            SourceCapabilityUpdater.Update();

            Cache.Clear();

            if (NavigationContext.QueryString.TryGetValue("sync", out syncdb))
            {
                _fAppLoaded = true;
                syncdb      = NavigationContext.QueryString["db"];
                NavigationContext.QueryString.Remove("sync");
            }

            var checkTileOpen = e.NavigationMode !=
                                NavigationMode.Back;

            RefreshDbList(checkTileOpen, syncdb);
        }
コード例 #2
0
        protected override void OnNavigatedTo(
            bool cancelled, NavigationEventArgs e)
        {
            _moved = false;

            if (cancelled)
            {
                _moved = true;
                return;
            }

            SourceCapabilityUpdater.Update();

            if (AppSettings.Instance.AllowAnalytics == null)
            {
                _moved = true;
                this.NavigateTo <AnalyticsSettings>();
                return;
            }

            Cache.Clear();

            var checkTileOpen = e.NavigationMode !=
                                NavigationMode.Back;

            RefreshDbList(checkTileOpen);
        }
コード例 #3
0
ファイル: MainPage.xaml.cs プロジェクト: holpit/WinPass
        protected override void OnNavigatedTo(
            bool cancelled, NavigationEventArgs e)
        {
            _moved = false;

            if (cancelled)
            {
                _moved = true;
                return;
            }

            SourceCapabilityUpdater.Update();

            //if (AppSettings.Instance.AllowAnalytics == null)
            //{
            //    _moved = true;
            //    this.NavigateTo<AnalyticsSettings>();
            //    return;
            //}
            Cache.Clear();

            if (NavigationContext.QueryString.TryGetValue("sync", out syncdb))
            {
                _fAppLoaded = true;
                syncdb      = NavigationContext.QueryString["db"];
                NavigationContext.QueryString.Remove("sync");
            }
            string param;

            if (NavigationContext.QueryString.TryGetValue("languageChange", out param))
            {
                bool langChange;
                if (bool.TryParse(param, out langChange))
                {
                    if (langChange)
                    {
                        while (NavigationService.CanGoBack)
                        {
                            NavigationService.RemoveBackEntry();
                        }
                    }
                    NavigationContext.QueryString.Remove("languageChange");
                }
            }

            var checkTileOpen = e.NavigationMode !=
                                NavigationMode.Back;

            RefreshDbList(checkTileOpen, syncdb);
        }
コード例 #4
0
ファイル: MainPage.xaml.cs プロジェクト: puffchumpy/codesafe
        protected override void OnNavigatedTo(
            bool cancelled, NavigationEventArgs e)
        {
            _moved = false;

            if (cancelled)
            {
                _moved = true;
                return;
            }

            SourceCapabilityUpdater.Update();

            Cache.Clear();

            var checkTileOpen = e.NavigationMode !=
                                NavigationMode.Back;

            RefreshDbList(checkTileOpen);
        }