Exemple #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());
 }
Exemple #2
0
 private void Dispose(bool fDisposing)
 {
     System.Diagnostics.Debug.WriteLineIf(!fDisposing, "****** Missing Dispose() call for " + GetType() + " *******");
     if (fDisposing)
     {
         var disposable = TeRegistryKey as IDisposable;
         if (disposable != null)
         {
             disposable.Dispose();
         }
         if (ShowMarkerlessIconsSetting != null)
         {
             ShowMarkerlessIconsSetting.Dispose();
         }
         if (ShowEmptyParagraphPromptsSetting != null)
         {
             ShowEmptyParagraphPromptsSetting.Dispose();
         }
         if (ShowFormatMarksSetting != null)
         {
             ShowFormatMarksSetting.Dispose();
         }
         if (UserInterfaceLanguage != null)
         {
             UserInterfaceLanguage.Dispose();
         }
         if (UseVerticalDraftView != null)
         {
             UseVerticalDraftView.Dispose();
         }
         if (UseInterlinearBackTranslation != null)
         {
             UseInterlinearBackTranslation.Dispose();
         }
         if (UseXhtmlExport != null)
         {
             UseXhtmlExport.Dispose();
         }
         if (FootnoteSynchronousScrollingSetting != null)
         {
             FootnoteSynchronousScrollingSetting.Dispose();
         }
         if (ShowTheseStylesSetting != null)
         {
             ShowTheseStylesSetting.Dispose();
         }
         if (ShowStyleLevelSetting != null)
         {
             ShowStyleLevelSetting.Dispose();
         }
         if (ShowUserDefinedStylesSetting != null)
         {
             ShowUserDefinedStylesSetting.Dispose();
         }
         if (AutoStartLibronix != null)
         {
             AutoStartLibronix.Dispose();
         }
         if (ShowTranslateUnsQuestions != null)
         {
             ShowTranslateUnsQuestions.Dispose();
         }
         //if (UseEnableSendReceiveSyncMsgs != null)
         //    UseEnableSendReceiveSyncMsgs.Dispose();
         //UseEnableSendReceiveSyncMsgs = null;
     }
     TeRegistryKey = null;
     ShowMarkerlessIconsSetting       = null;
     ShowEmptyParagraphPromptsSetting = null;
     ShowFormatMarksSetting           = null;
     UserInterfaceLanguage            = null;
     UseVerticalDraftView             = null;
     UseInterlinearBackTranslation    = null;
     UseXhtmlExport = null;
     FootnoteSynchronousScrollingSetting = null;
     ShowTheseStylesSetting       = null;
     ShowStyleLevelSetting        = null;
     ShowUserDefinedStylesSetting = null;
     AutoStartLibronix            = null;
     ShowTranslateUnsQuestions    = null;
 }