public ConfigurationSection(ComponentSettings componentSettings, global::FoxTunes.ConfigurationSection section, string path = null) : this() { this.ComponentSettings = componentSettings; this.Section = section; this.Path = path; if (string.IsNullOrEmpty(this.Path)) { foreach (var element in this.Section.Elements.OrderBy(element => element.Id)) { if (!componentSettings.MatchesFilter(this.Section, false) && !componentSettings.MatchesFilter(element)) { continue; } this.AddElement(element); } } }
public static void SetSections(ComponentSettings source, StringCollection value) { source.SetValue(SectionsProperty, value); }
public static StringCollection GetSections(ComponentSettings source) { return((StringCollection)source.GetValue(SectionsProperty)); }