コード例 #1
0
 private void DownloadProgressAdapter(object sender, _DownloadProgress e)
 {
     UpdateProgress(new DownloadChangedProgress
     {
         Status              = e.DownloadState,
         BytesReceived       = e.DownloadedSize,
         CurrentReceived     = e.CurrentRead,
         TotalBytesToReceive = e.TotalSizeToDownload,
         CurrentSpeed        = e.CurrentSpeed,
         ProgressPercentage  = e.ProgressPercentage,
         TimeLeft            = GetLastTimeSpan(InnerProgressStopwatch, e.TimeLeft)
     });
 }
コード例 #2
0
 public void UpdateProgress(_DownloadProgress input) => DownloadProgress?.Invoke(this, input);