예제 #1
0
파일: Folder.cs 프로젝트: faboo/faux
        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);
            }
        }
예제 #2
0
 public ProjectFilesFolder(Folder old)
     : this()
 {
     foreach(var node in old.Contents)
         Contents.Add(node);
 }