コード例 #1
0
ファイル: Program.cs プロジェクト: MichelZ/fanart.tv-API
 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);
     }
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: karolczajkowski/UOLoader
 private void FileDownloadProgressChanged(object sender, FileDownloadProgressEventArgs fileDownloadProgressEventArgs)
 {
     UI.SetLabelText(statusLabel, $"Ściąganie: {fileDownloadProgressEventArgs.Percentage}%");
     SetDownloadProgress(fileDownloadProgressEventArgs.Percentage);
 }
コード例 #3
0
 void downloader_DownloadProgressChanged(object sender, FileDownloadProgressEventArgs e)
 {
     this.Text = "正在下载文件" + this.m_File.FileName + ",下载进度" + e.ProgressPercent + "%";
     Downloader.Logger(this.Text);
 }