示例#1
0
 public DriveObject()
 {
     driveObjectType = DriveObjectType.Directory;
     path            = null;
     name            = null;
     date            = new DateTime();
     comments        = null;
     size            = 0;
     subDirectories  = new List <DriveObject>();
 }
示例#2
0
 public DriveObject(DriveObject prevDriveObj)
 {
     this.driveObjectType = prevDriveObj.driveObjectType;
     this.path            = prevDriveObj.path;
     this.name            = prevDriveObj.name;
     this.date            = prevDriveObj.date;
     this.size            = prevDriveObj.size;
     this.comments        = prevDriveObj.comments;
     this.tags            = new List <Tag>(prevDriveObj.tags);
     this.subDirectories  = new List <DriveObject>();
 }
示例#3
0
 public DriveObject(string path, string name, DateTime date, decimal size, string comment, DriveObjectType type)
 {
     driveObjectType = type;
     this.path       = path;
     this.name       = name;
     this.date       = date;
     this.size       = size;
     this.comments   = comment;
     subDirectories  = new List <DriveObject>();
     tags            = new List <Tag>();
 }
示例#4
0
 public DriveObject(string path, string name, DateTime date, decimal size, string comment, Tag[] tags, DriveObject[] directoryItems, DriveObjectType type)
 {
     driveObjectType = type;
     this.path       = path;
     this.name       = name;
     this.date       = date;
     this.size       = size;
     this.comments   = comment;
     this.tags       = new List <Tag>();
     foreach (Tag tag in tags)
     {
         this.tags.Add(tag);
     }
     subDirectories = new List <DriveObject>();
     foreach (DriveObject dir in directoryItems)
     {
         subDirectories.Add(dir);
     }
 }