예제 #1
0
        public bool GetCollectInfoOption()
        {
            string filepath = DesignScript.Editor.Configurations.GetSettingsFilePath();
            ITextEditorSettings editorSettings = EditorSettingsData.Deserialize(filepath);

            return(editorSettings.CollectFeedback);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
            }
        }