Example #1
0
        private void _downloadContainer_ProgressChanged(object sender, DownloadProgress e)
        {
            EventHandler <DownloadJobProgressChangedEventArgs> handler = JobProgressChanged;

            if (handler != null)
            {
                DownloadJobStatus status   = Status;
                ProgressValue     progress = new ProgressValue(e.TotalBytesDownloaded, e.TotalDownloadSize);
                handler(this, new DownloadJobProgressChangedEventArgs(status, progress));
            }
        }
Example #2
0
 public DownloadJobStatusChangedEventArgs(DownloadJobStatus oldStatus, DownloadJobStatus newStatus)
 {
     OldStatus = oldStatus;
     NewStatus = newStatus;
 }
Example #3
0
 public DownloadJobProgressChangedEventArgs(DownloadJobStatus downloadJobStatus, ProgressValue downloadProgress)
 {
     DownloadJobStatus = downloadJobStatus;
     DownloadProgress  = downloadProgress;
 }
Example #4
0
 public DownloadJobProgressChangedEventArgs(DownloadJobStatus downloadJobStatus, long totalBytesDownloaded, long?totalFileSize)
 {
     DownloadJobStatus = downloadJobStatus;
     DownloadProgress  = new ProgressValue(totalBytesDownloaded, totalFileSize);
 }
Example #5
0
 public DownloadJobProgressChangedEventArgs(DownloadJobStatus downloadJobStatus)
 {
     DownloadJobStatus = downloadJobStatus;
     DownloadProgress  = null;
 }