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