public void UpdateStatus(Status status) { DownloadStatus = (int)status; if (status == Status.Downloaded) { CurrentProgress.Update(0, 0); } DownloadDetailsCache.Instance.UpdateDownloadDetails(this); }
public void Update(DownloadDetails downloadDetails) { DownloadStatus = downloadDetails.DownloadStatus; ContentUri = ContentUri ?? downloadDetails.ContentUri; if (DownloadStatus == (int)Status.Downloaded) { CurrentProgress.Update(0, 0); } CurrentProgress.Update(downloadDetails.CurrentProgress); }