예제 #1
0
 public void CopyFrom(SharedSnippetsOptions source)
 {
     AlwaysShowDescription        = source.AlwaysShowDescription;
     AlwaysUseOfflineScriptEditor = source.AlwaysUseOfflineScriptEditor;
     ConfirmDescriptionSave       = source.ConfirmDescriptionSave;
     ShowItemToolTip         = source.ShowItemToolTip;
     CodeCompletionListOrder = source.CodeCompletionListOrder;
 }
예제 #2
0
        public SharedSnippetsOptions CreateCopy()
        {
            SharedSnippetsOptions newOpts = new SharedSnippetsOptions();

            newOpts.AlwaysShowDescription        = this.AlwaysShowDescription;
            newOpts.AlwaysUseOfflineScriptEditor = this.AlwaysUseOfflineScriptEditor;
            newOpts.ConfirmDescriptionSave       = this.ConfirmDescriptionSave;
            newOpts.ShowItemToolTip         = this.ShowItemToolTip;
            newOpts.CodeCompletionListOrder = this.CodeCompletionListOrder;

            return(newOpts);
        }
예제 #3
0
        public bool LoadContent(ConfigurationContent configContent)
        {
            if (configContent == null)
            {
                throw new NullParameterException("Configuration content param is null!");
            }

            if (configContent.SharedSnippetsOptions == null)
            {
                throw new NullPropertyException("Configuration content does not contain SharedSnippetsOptions item!");
            }

            _configContent         = configContent;
            _sharedSnippetsOptions = _configContent.SharedSnippetsOptions;


            LoadInitial();

            _isContentLoaded = true;
            return(true);
        }