public IncludeRuleListControl() { this.InitializeComponent(); this.collection = new IncludeRuleCollection(); }
public IncludeRuleListControl() { this.InitializeComponent(); this.collection = new IncludeRuleCollection(); }
public IncludeRuleCollection GetFiles() { var l = new IncludeRuleCollection(); if (this.Parent != null) { l.AddRange(this.Parent.GetFiles()); } if (this.Includes != null) { l.AddRange(this.Includes); } return l; }
/// <summary> /// Returns a collection of include rules. /// </summary> /// <param name="profile">The profile to use to build the include rule collection. Set this parameter to null if the currently selected profile should be used instead.</param> /// <returns>A collection of include rules.</returns> public IncludeRuleCollection GetFiles(BuildProfile profile = null) { var l = new IncludeRuleCollection(); if (this.GlobalIncludeRules != null) { l.AddRange(this.GlobalIncludeRules); } if (profile != null) { l.AddRange(profile.GetFiles()); } else if (this.CurrentProfile != null) { l.AddRange(this.CurrentProfile.GetFiles()); } return l; }