コード例 #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);
            }
        }