private static void DownloaderOnDownloadProgressNotification(FileDownloader fileDownloader, FileDownloadProgressEventArgs fileDownloadProgressEventArgs) { lock (DoneLockObject) { Done++; Console.WriteLine( fileDownloadProgressEventArgs.Exception != null ? "{0}: [{1}/{2}]: Error while downloading {3}: {4}" : "{0}: [{1}/{2}]: Successfully downloaded {3}", DateTime.Now, Done, Total, fileDownloadProgressEventArgs.FileDownloadInfo.Identifier, fileDownloadProgressEventArgs.Exception); } }
private void FileDownloadProgressChanged(object sender, FileDownloadProgressEventArgs fileDownloadProgressEventArgs) { UI.SetLabelText(statusLabel, $"Ściąganie: {fileDownloadProgressEventArgs.Percentage}%"); SetDownloadProgress(fileDownloadProgressEventArgs.Percentage); }
void downloader_DownloadProgressChanged(object sender, FileDownloadProgressEventArgs e) { this.Text = "正在下载文件" + this.m_File.FileName + ",下载进度" + e.ProgressPercent + "%"; Downloader.Logger(this.Text); }