Exemplo n.º 1
0
 /// <summary>
 /// Add a dimension to the array
 /// </summary>
 /// <param name="dname">name of dimension</param>
 /// <param name="dcount">count of dimension elements</param>
 public void AddDimension(string dname, long dcount)
 {
     Dimension d = new Dimension(dname, dcount);
     if (dim_ == null)
     {
         dim_ = d;
     }
     else
     {
         dim_.AddDescendant(d);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Add a Dimension node to the leaf (lowest child)
 /// </summary>
 /// <param name="d"></param>
 public void AddDescendant(Dimension d)
 {
     Dimension p = this;
     while (p.HasChild)
     {
         p = p.Child;
     }
     p.Child = d;
 }