private void OnProgressUpdate(object sender, ProgressUpdateEventArgs e) { if (ProgressUpdate != null) { ProgressUpdate(sender, e); } }
private void update_ProgressUpdate(object sender, ProgressUpdateEventArgs e) { Invoke((MethodInvoker)delegate { pbProgress.Value = e.ProgressPercentage; lblStatus.Text = string.Format("Status: Downloading {0} / {1}...", e.Current, e.Max); }); }
private void OnExtractionProgressUpdate(object sender, ProgressUpdateEventArgs e) { ExtractionTask task = e.State as ExtractionTask; if (task != null) { Invoke((MethodInvoker)delegate() { ListViewItem item = _extractionTable[task]; UpdateExtractionStatus(task, item, e.Current, e.Max, e.ProgressPercentage, "Extracting..."); }); } }
private void OnPatchingProgressUpdate(object sender, ProgressUpdateEventArgs e) { PatchingTask task = e.State as PatchingTask; if (task != null) { Invoke((MethodInvoker)delegate() { ListViewItem item = _patchTable[task]; UpdatePatchingStatus(task, item, e.Current, e.Max, e.ProgressPercentage, "Patching..."); }); } }
private void OnDownloadStateProgressUpdate(object sender, ProgressUpdateEventArgs e) { DownloadTask state = e.State as DownloadTask; if (state != null) { Invoke((MethodInvoker)delegate() { ListViewItem item = _downloadTable[state]; UpdateDownloadStatus(state, item, e.Current, e.Max, e.ProgressPercentage, "Downloading..."); }); } }