// 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 { }
        }
Example #2
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();
 }
Example #3
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();
 }