public DriveFile(string id, string name, long?size, string checksum) { Id = id; Name = name; Size = FileSizeCalculator.ToMegabyte(size); Checksum = checksum; }
private void OnProgressChanged(IDownloadProgress progress) { var megabytesDownloaded = FileSizeCalculator.ToMegabyte(progress.BytesDownloaded); Refresh(megabytesDownloaded, _file.Name); }