public bool GetCollectInfoOption() { string filepath = DesignScript.Editor.Configurations.GetSettingsFilePath(); ITextEditorSettings editorSettings = EditorSettingsData.Deserialize(filepath); return(editorSettings.CollectFeedback); }
public void SetCollectInfoOption(bool collectFeedback) { this.CollectFeedback = collectFeedback; string filepath = DesignScript.Editor.Configurations.GetSettingsFilePath(); ITextEditorSettings editorSettings = EditorSettingsData.Deserialize(filepath); EnableDisableLogger(collectFeedback); editorSettings.CollectFeedback = collectFeedback; EditorSettingsData.Serialize(filepath, editorSettings); }
public CollectInfoManager(ILoggerWrapper logger) { this.logger = logger; this.CollectFeedback = false; string filepath = DesignScript.Editor.Configurations.GetSettingsFilePath(); if (!File.Exists(filepath)) { SetCollectInfoOption(ShowCollectInfoDialog()); } else { ITextEditorSettings editorSettings = EditorSettingsData.Deserialize(filepath); EnableDisableLogger(editorSettings.CollectFeedback); } }