public void CopyFrom(SharedSnippetsOptions source) { AlwaysShowDescription = source.AlwaysShowDescription; AlwaysUseOfflineScriptEditor = source.AlwaysUseOfflineScriptEditor; ConfirmDescriptionSave = source.ConfirmDescriptionSave; ShowItemToolTip = source.ShowItemToolTip; CodeCompletionListOrder = source.CodeCompletionListOrder; }
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); }
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); }