Example #1
0
 /// <summary>Add the node to the children list at the given insertion point.</summary>
 /// <remarks>
 /// Add the node to the children list at the given insertion point.
 /// The basic add method which actually calls children.add(..).
 /// </remarks>
 private void AddChild(INode node, int insertionPoint)
 {
     if (children == null)
     {
         children = new AList <INode>(DefaultFilesPerDirectory);
     }
     node.SetParent(this);
     children.Add(-insertionPoint - 1, node);
     if (node.GetGroupName() == null)
     {
         node.SetGroup(GetGroupName());
     }
 }