Exemplo n.º 1
0
        private void SetIndices()
        {
            IndexCounter counter = new IndexCounter(-1);

            Root.SetIndices(counter);
            Count = counter.CurrentIndex;
        }
Exemplo n.º 2
0
 public void SetIndices(IndexCounter counter)
 {
     Index = counter.Next();
     foreach (var child in Children.Values)
     {
         child.SetIndices(counter);
     }
 }