Example #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("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);
        }
Example #2
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);
        }