public Rule AddRule() { var rule = new Rule(); AddChild(rule); return rule; }
/// <summary> /// Gets a list of all form fields /// </summary> /// <returns> </returns> public Rule[] GetRules() { ElementList nl = SelectElements(typeof (Rule)); var items = new Rule[nl.Count]; int i = 0; foreach (Element e in nl) { items[i] = (Rule) e; i++; } return items; }
public void AddRule(Rule rule) { AddChild(rule); }