private void Files_DownloadFileProgressChanged(DownloadFileProgressChangedEventArgs e) { progressBar.Value = (int)e.Progress; }
private void MyWebClient_ForAIDA_DownloadFileProgressChanged(object sender, DownloadFileProgressChangedEventArgs e) { this.OnCurrentTotalProgressChanged(new Events.ProgressEventArgs(e.TotalFileCount)); this.OnCurrentProgressChanged(new Events.ProgressEventArgs(e.CurrentFileIndex + 1)); }
protected void OnDownloadFileProgressChanged(object sender, DownloadFileProgressChangedEventArgs e) { DownloadFileProgressChanged?.Invoke(sender, e); }