示例#1
0
 public override TimeSpan CopyData(DataToCopy Data, out int filesCopied, out double volumeCopied)
 {
     filesCopied  = 0;
     volumeCopied = 0;
     while (FreeVolume >= Data.FileVolume && Data.FilesToCopy > 0)
     {
         FreeVolume -= Data.FileVolume;
         Data.FilesToCopy--;
         filesCopied++;
         Data.VolumeToCopy -= Data.FileVolume;
         volumeCopied      += Data.FileVolume;
     }
     return(TimeSpan.FromSeconds(volumeCopied / speed));
 }
示例#2
0
 abstract public TimeSpan CopyData(DataToCopy Data, out int filesCopied, out double volumeCopied);