예제 #1
0
 public FileInfo(int id, string fileName, string extensionName, long size, string path, string thumbnail, File.FileType type)
 {
     Id            = id;
     FileName      = fileName;
     ExtensionName = extensionName;
     Size          = size;
     Path          = path;
     Thumbnail     = thumbnail;
     Type          = type;
 }
예제 #2
0
        public NameProxy(File.FileType node_type)
        {
            switch (node_type)
            {
            case File.FileType.File:
                node = new Directory();
                break;

            case File.FileType.Directory:
                node = new File();
                break;
            }
            type = node_type;
        }