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)); } }
public DownloadJobStatusChangedEventArgs(DownloadJobStatus oldStatus, DownloadJobStatus newStatus) { OldStatus = oldStatus; NewStatus = newStatus; }
public DownloadJobProgressChangedEventArgs(DownloadJobStatus downloadJobStatus, ProgressValue downloadProgress) { DownloadJobStatus = downloadJobStatus; DownloadProgress = downloadProgress; }
public DownloadJobProgressChangedEventArgs(DownloadJobStatus downloadJobStatus, long totalBytesDownloaded, long?totalFileSize) { DownloadJobStatus = downloadJobStatus; DownloadProgress = new ProgressValue(totalBytesDownloaded, totalFileSize); }
public DownloadJobProgressChangedEventArgs(DownloadJobStatus downloadJobStatus) { DownloadJobStatus = downloadJobStatus; DownloadProgress = null; }