Пример #1
0
        //void Calendar_Loaded(object sender, RoutedEventArgs e)
        //{
        //    DisplayAppoitmentForDate(DateTime.Now.Date);
        //}

        //void DisplayAppoitmentForDate(DateTime date)
        //{

        //    //await FileStorageOperations.LoadFromLocalFolderAsync();
        //}

        void SomePage_Loaded(object sender, RoutedEventArgs e)
        {
            if (ReviewBugger.IsTimeForReview())
            {
                ReviewBugger.PromptUser();
            }
        }
        void MainPage_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            _vm.EnableGpsAsync();

            try
            {
                if (ReviewBugger.IsTimeForReview())
                {
                    ReviewBugger.PromptUser();
                }
            }
            catch { }
        }
        // Code to execute when the application is launching (eg, from Start)
        // This code will not execute when the application is reactivated
        private void Application_Launching(object sender, LaunchingEventArgs e)
        {
            TiltEffect.SetIsTiltEnabled(RootFrame, true);

            TaskHelper.ResetTask(false);

            //Set culture
            ISettingService settingService = SimpleIoc.Default.GetInstance <ISettingService>();
            //
            var settingsCulture = settingService.GetCulture();

            if (string.IsNullOrEmpty(settingsCulture))
            {
                if (Thread.CurrentThread.CurrentUICulture.CompareInfo.Name.IndexOf("nl-") >= 0 ||
                    Thread.CurrentThread.CurrentCulture.CompareInfo.Name.IndexOf("nl-") >= 0)
                {
                    settingsCulture = "nl-NL";
                }
                else if (Thread.CurrentThread.CurrentUICulture.CompareInfo.Name.IndexOf("en-") >= 0 ||
                         Thread.CurrentThread.CurrentCulture.CompareInfo.Name.IndexOf("en-") >= 0)
                {
                    settingsCulture = "en-US";
                }

                settingService.SetCulture(settingsCulture);
            }

            if (!string.IsNullOrEmpty(settingsCulture))
            {
                Thread.CurrentThread.CurrentUICulture = new CultureInfo(settingsCulture);
            }

            try
            {
                ReviewBugger.CheckNumOfRuns();
            }
            catch { }
        }
Пример #4
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     ReviewBugger.CheckNumOfRuns();
 }
Пример #5
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     //Before using any of the ApplicationBuildingBlocks, this class should be initialized with the version of the application.
     ApplicationUsageHelper.Init("1.0");
     ReviewBugger.CheckNumOfRuns();
 }