Ejemplo n.º 1
0
 public override bool CheckAddPoint(RestorePoint point)
 {
     if (DateTime.Compare(point.CreationTime, limitDate) >= 0)
     {
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
 public DeltaRestorePoint(int id, string name, RestorePoint parentPoint) : base(id, name)
 {
     this.parentPoint = parentPoint;
     files            = new LinkedList <string>();
     foreach (var file in parentPoint.GetFiles())
     {
         FileInfo pointFile = new FileInfo(file);
         if (pointFile.Exists && (DateTime.Compare(parentPoint.CreationTime, pointFile.LastWriteTime) < 0))
         {
             files.AddLast(pointFile.FullName);
             size += pointFile.Length;
         }
     }
 }
Ejemplo n.º 3
0
 public abstract bool CheckAddPoint(RestorePoint point = null);
Ejemplo n.º 4
0
 public override bool CheckAddPoint(RestorePoint point = null)
 {
     countAtMoment++;
     return(countAtMoment <= limitCount);
 }
Ejemplo n.º 5
0
 public override bool CheckAddPoint(RestorePoint point)
 {
     sizeAtMoment += point.Size;
     return(sizeAtMoment <= limitSize);
 }