Example #1
0
 public void AddItems(Item[] items)
 {
     foreach (Item item in items)
     {
         AddChild(item);
     }
 }
Example #2
0
 /// <summary>
 ///   Gets all Rules (Items) when available
 /// </summary>
 /// <returns> </returns>
 public Item[] GetItems()
 {
     ElementList el = SelectElements(typeof (Item));
     int i = 0;
     var result = new Item[el.Count];
     foreach (Item itm in el)
     {
         result[i] = itm;
         i++;
     }
     return result;
 }
Example #3
0
 /// <summary>
 ///   Adds a rule (item) to the list
 /// </summary>
 /// <param name="itm"> </param>
 public void AddItem(Item item)
 {
     AddChild(item);
 }