コード例 #1
0
 /// <summary>
 /// create a folder using values
 /// </summary>
 /// <param name="name"></param>
 /// <param name="parent"></param>
 /// <param name="checksum"></param>
 /// <param name="snapshot"></param>
 /// <param name="lastUpdate"></param>
 public TrackedFolder(string name, TrackedFolder parent, DateTime date)
     : base(name, parent, "", "", date)
 {
     if(parent!=null)
         this.root = parent.getRoot();
     contents = new List<TrackedFile>();
     directory = true;
     this.LastUpdate = date;
 }
コード例 #2
0
 /// <summary>
 /// create a files using values
 /// </summary>
 /// <param name="name"></param>
 /// <param name="parent"></param>
 /// <param name="checksum"></param>
 /// <param name="snapshot"></param>
 /// <param name="lastUpdate"></param>
 public TrackedFile(string name, TrackedFolder parent, string checksum, string snapshot, DateTime lastUpdate)
 {
     if(parent!=null)
         this.root = parent.getRoot();
     this.name = name;
     this.parent = parent;
     this.checksum = checksum;
     this.snapshot = snapshot;
     this.directory = false;
     this.lastUpdate = lastUpdate;
 }