private void OnDownloadCompleted(object sender, AsyncCompletedEventArgs e) { downloadProgressTracker_.Reset(); if (UpdateInProgress_) { DownloadNext(); } else { DownloadNextMod(); } }
private async Task loadFile(string src, string filename, string statusText) { progressBarLeft_ = _progressBar1.Value; loadingLabel.Text = statusText; await wc_.DownloadFileTaskAsync(src, filename); downloadProgressTracker_.Reset(); progressBarLeft_ += 3; if (progressBarLeft_ > 87) { progressBarLeft_ = 50; } _progressBar1.Value = progressBarLeft_; }