AddChild() public method

public AddChild ( FileSystemNode node ) : void
node FileSystemNode
return void
Ejemplo n.º 1
0
 protected FileSystemNode(FolderNode parent, string name)
 {
     Parent = parent;
     Name = name;
     if (Parent != null)
     {
         Parent.AddChild(this);
     }
     TouchLastWriteTime();
     TouchLastAccessTime();
     TouchCreationTime();
 }
Ejemplo n.º 2
0
 internal void Move(FileSystemNode source, FolderNode destParentNode, string destName)
 {
     Children.Remove(source);
     source.Name = destName;
     destParentNode.AddChild(source);
 }