/// <summary> /// Loads the plugins 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; } //LoadByDefault attribute. LoadByDefault = helper.ReadBooleanAttribute( element, "loadByDefault", false ); //Load plugins helper.ReadElementCollectionTo( element, "plugin", e => { PluginSettings pluginSettings = new PluginSettings(); pluginSettings.LoadFromXmlElement(e, helper); return(pluginSettings); }, Plugins ); }