Ejemplo n.º 1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Adds the options as properties of the error reporter so that they show up in a
 /// call stack.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 public static void AddErrorReportingInfo()
 {
     ErrorReporter.AddProperty("UserInterfaceWritingSystem", UserInterfaceWritingSystem);
     ErrorReporter.AddProperty("ShowUserDefinedStylesSetting", ShowUserDefinedStylesSetting.ToString());
     ErrorReporter.AddProperty("ShowFormatMarksSetting", ShowFormatMarksSetting.ToString());
     ErrorReporter.AddProperty("ShowMarkerlessIconsSetting", ShowMarkerlessIconsSetting.ToString());
     ErrorReporter.AddProperty("FootnoteSynchronousScrollingSetting", FootnoteSynchronousScrollingSetting.ToString());
     ErrorReporter.AddProperty("UseVerticalDraftView", UseVerticalDraftView.ToString());
     ErrorReporter.AddProperty("UseInterlinearBackTranslation", UseInterlinearBackTranslation.ToString());
     ErrorReporter.AddProperty("ShowEmptyParagraphPromptsSetting", ShowEmptyParagraphPromptsSetting.ToString());
     ErrorReporter.AddProperty("ShowTheseStylesSetting", ShowTheseStylesSetting.ToString());
     ErrorReporter.AddProperty("ShowStyleLevelSetting", ShowStyleLevelSetting.ToString());
 }
Ejemplo n.º 2
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Adds the options as properties of the error reporter so that they show up in a
        /// call stack.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public static void AddErrorReportingInfo()
        {
            ErrorReporter.AddProperty("FirstTimeAppHasBeenRun", FirstTimeAppHasBeenRun.ToString());
            int cLaunches = NumberOfLaunches + 1;               // this is stored before it's incremented.

            ErrorReporter.AddProperty("NumberOfLaunches", cLaunches.ToString());
            int cmin = TotalAppRuntime / 60;

            ErrorReporter.AddProperty("TotalRuntime", String.Format("{0}:{1}", cmin / 60, cmin % 60));
            ErrorReporter.AddProperty("NumberOfSeriousCrashes", NumberOfSeriousCrashes.ToString());
            ErrorReporter.AddProperty("NumberOfAnnoyingCrashes", NumberOfAnnoyingCrashes.ToString());
            ErrorReporter.AddProperty("RuntimeBeforeCrash", "0:00");
            ErrorReporter.AddProperty("StartupSuccessfulSetting", StartupSuccessfulSetting.ToString());
            ErrorReporter.AddProperty("ShowSideBarSetting", ShowSideBarSetting.ToString());
            ErrorReporter.AddProperty("ShowStatusBarSetting", ShowStatusBarSetting.ToString());
            ErrorReporter.AddProperty("DisableSplashScreenSetting", DisableSplashScreenSetting.ToString());
            ErrorReporter.AddProperty("MeasurementUnitSetting", ((MsrSysType)MeasurementUnitSetting).ToString());
            ErrorReporter.AddProperty("BackupDirectorySetting", BackupDirectorySetting);
        }
Ejemplo n.º 3
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Adds the options as properties of the error reporter so that they show up in a
        /// call stack.
        /// </summary>
        /// ------------------------------------------------------------------------------------
        public void AddErrorReportingInfo()
        {
            ErrorReporter.AddProperty("FirstTimeAppHasBeenRun", FirstTimeAppHasBeenRun.ToString());
            int cLaunches = NumberOfLaunches + 1;               // this is stored before it's incremented.

            ErrorReporter.AddProperty("NumberOfLaunches", cLaunches.ToString());
            int cmin = TotalAppRuntime / 60;

            ErrorReporter.AddProperty("TotalRuntime", String.Format("{0}:{1}", cmin / 60, cmin % 60));
            ErrorReporter.AddProperty("NumberOfSeriousCrashes", NumberOfSeriousCrashes.ToString());
            ErrorReporter.AddProperty("NumberOfAnnoyingCrashes", NumberOfAnnoyingCrashes.ToString());
            ErrorReporter.AddProperty("RuntimeBeforeCrash", "0:00");
            ErrorReporter.AddProperty("LoadingProcessId", LoadingProcessId.ToString());
            ErrorReporter.AddProperty("ShowSideBarSetting", ShowSideBarSetting.ToString());
            ErrorReporter.AddProperty("ShowStatusBarSetting", ShowStatusBarSetting.ToString());
            ErrorReporter.AddProperty("AutoOpenLastEditedProjectSetting", AutoOpenLastEditedProject.ToString());
            ErrorReporter.AddProperty("DisableSplashScreenSetting", DisableSplashScreenSetting.ToString());
            ErrorReporter.AddProperty("MeasurementUnitSetting", ((MsrSysType)MeasurementUnitSetting).ToString());
            ErrorReporter.AddProperty("BackupDirectorySetting", FwDirectoryFinder.DefaultBackupDirectory);
            ErrorReporter.AddProperty("ProjectsDirectorySetting", FwDirectoryFinder.ProjectsDirectory);
        }