示例#1
0
        public void UpdateStatus(Status status)
        {
            DownloadStatus = (int)status;
            if (status == Status.Downloaded)
            {
                CurrentProgress.Update(0, 0);
            }

            DownloadDetailsCache.Instance.UpdateDownloadDetails(this);
        }
示例#2
0
        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);
        }