public virtual void Add(Node node) { if(!Contents.Contains(node)) { if(node is OtherFile) node = new File(node as OtherFile); else if(node is OtherFilesFolder) node = new Folder(node as OtherFilesFolder); AddCore(node); } }
public ProjectFilesFolder(Folder old) : this() { foreach(var node in old.Contents) Contents.Add(node); }