Esempio n. 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));
 }
Esempio n. 2
0
 abstract public TimeSpan CopyData(DataToCopy Data, out int filesCopied, out double volumeCopied);