예제 #1
0
        public FileData(NFSFile file, FolderData parentFolder)
            : base(parentFolder)
        {
            if (file == null)
            {
                throw new ArgumentNullException("file");
            }

            this.source = file;

            this.name      = file.Name;
            this.filename  = file.Filename;
            this.extension = file.Extension;
            this.size      = formatSize(file.Size);
        }
예제 #2
0
 protected FileTreeItem(FolderData parentFolder)
 {
     this.parentFolder = parentFolder;
 }