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);
        }
Beispiel #2
0
 protected FileTreeItem(FolderData parentFolder)
 {
     this.parentFolder = parentFolder;
 }