Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 private void FileDownloadProgressChanged(object sender, FileDownloadProgressEventArgs fileDownloadProgressEventArgs)
 {
     UI.SetLabelText(statusLabel, $"Ściąganie: {fileDownloadProgressEventArgs.Percentage}%");
     SetDownloadProgress(fileDownloadProgressEventArgs.Percentage);
 }
Esempio n. 3
0
 void downloader_DownloadProgressChanged(object sender, FileDownloadProgressEventArgs e)
 {
     this.Text = "正在下载文件" + this.m_File.FileName + ",下载进度" + e.ProgressPercent + "%";
     Downloader.Logger(this.Text);
 }