示例#1
0
 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);
         }
     }
 }
示例#2
0
 public static void SetSections(ComponentSettings source, StringCollection value)
 {
     source.SetValue(SectionsProperty, value);
 }
示例#3
0
 public static StringCollection GetSections(ComponentSettings source)
 {
     return((StringCollection)source.GetValue(SectionsProperty));
 }