예제 #1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Use this for slow operations that should happen during the splash screen instead of
 /// during app construction
 /// </summary>
 /// <param name="progressDlg">The progress dialog to use.</param>
 /// ------------------------------------------------------------------------------------
 public override void DoApplicationInitialization(IProgress progressDlg)
 {
     base.DoApplicationInitialization(progressDlg);
     CleanupRegistry();
     CleanupOldFiles();
     ScrReference.InitializeVersification(FwDirectoryFinder.TeFolder, false);
 }
예제 #2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Use this for slow operations that should happen during the splash screen instead of
 /// during app construction
 /// </summary>
 /// <param name="progressDlg">The progress dialog to use.</param>
 /// ------------------------------------------------------------------------------------
 public override void DoApplicationInitialization(IProgress progressDlg)
 {
     base.DoApplicationInitialization(progressDlg);
     if (FwUtils.IsOkToDisplayScriptureIfPresent)
     {
         ScrReference.InitializeVersification(FwDirectoryFinder.TeFolder, false);
     }
 }
예제 #3
0
 private void SafelyEnsureStyleSheetPostTERemoval(IThreadedProgress progressDlg)
 {
     // Ensure that we have up-to-date versification information so that projects with old TE styles
     // will be able to migrate them from the Scripture area to the LanguageProject model
     ScrReference.InitializeVersification(FwDirectoryFinder.EditorialChecksDirectory, false);
     // Make sure this DB uses the current stylesheet version
     // Suppress adjusting scripture sections since isn't safe to do so at this point
     SectionAdjustmentSuppressionHelper.Do(() => FlexStylesXmlAccessor.EnsureCurrentStylesheet(Cache.LangProject, progressDlg));
 }
예제 #4
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Use this for slow operations that should happen during the splash screen instead of
 /// during app construction
 /// </summary>
 /// ------------------------------------------------------------------------------------
 protected override void DoApplicationInitialization()
 {
     base.DoApplicationInitialization();
     CleanupRegistry();
     CleanupOldFiles();
     //InitializeMessageDialogs();
     ScrReference.InitializeVersification(DirectoryFinder.GetFWCodeSubDirectory(
                                              "Translation Editor"), false);
 }
예제 #5
0
 protected override void DoApplicationInitialization()
 {
     base.DoApplicationInitialization();
     if (IsTEInstalled)
     {
         ScrReference.InitializeVersification(DirectoryFinder.GetFWCodeSubDirectory(
                                                  "Translation Editor"), false);
     }
     //usage report
     SIL.Utils.UsageEmailDialog.DoTrivialUsageReport("*****@*****.**", xWorksStrings.ThankYouForCheckingOutFlex, new int[] { 1 });
     SIL.Utils.UsageEmailDialog.DoTrivialUsageReport("*****@*****.**", xWorksStrings.HaveLaunchedFLEXTenTimes, new int[] { 10 });
     SIL.Utils.UsageEmailDialog.DoTrivialUsageReport("*****@*****.**", xWorksStrings.HaveLaunchedFLEXFortyTimes, new int[] { 40 });
 }
예제 #6
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Use this for slow operations that should happen during the splash screen instead of
        /// during app construction
        /// </summary>
        /// <param name="progressDlg">The progress dialog to use.</param>
        /// ------------------------------------------------------------------------------------
        public override void DoApplicationInitialization(IProgress progressDlg)
        {
            base.DoApplicationInitialization(progressDlg);
            if (FwUtils.IsTEInstalled)
            {
                ScrReference.InitializeVersification(DirectoryFinder.TeFolder, false);
            }

            //usage report
            UsageEmailDialog.DoTrivialUsageReport(ApplicationName, SettingsKey, FeedbackEmailAddress, xWorksStrings.ThankYouForCheckingOutFlex, false, 1);
            UsageEmailDialog.DoTrivialUsageReport(ApplicationName, SettingsKey, FeedbackEmailAddress, xWorksStrings.HaveLaunchedFLEXTenTimes, true, 10);
            UsageEmailDialog.DoTrivialUsageReport(ApplicationName, SettingsKey, FeedbackEmailAddress, xWorksStrings.HaveLaunchedFLEXFortyTimes, true, 40);
        }