/// <summary> /// Loads the plugin settings from the specified XML element. /// </summary> /// <param name="element">The XML element to load from.</param> /// <param name="helper">The XML configuration helper being used.</param> internal void LoadFromXmlElement(XElement element, ConfigurationFileHelper helper) { if (element == null) { return; } //Type attribute. Type = helper.ReadStringAttribute( element, "type" ); //Load attribute. Load = helper.ReadBooleanAttribute( element, "load", true ); helper.ReadAttributeCollectionTo( element.Element("settings"), Settings ); }
/// <summary> /// Loads the log writer settings from the specified XML element. /// </summary> /// <param name="element">The XML element to load from.</param> /// <param name="helper">The XML configuration helper being used.</param> internal void LoadFromXmlElement(XElement element, ConfigurationFileHelper helper) { if (element == null) { return; } Type = helper.ReadStringAttribute( element, "type" ); Name = helper.ReadStringAttribute( element, "name" ); LogLevels = helper.ReadLogLevelsAttribute( element, "levels" ); helper.ReadAttributeCollectionTo( element.Element("settings"), Settings ); }