private void dismProgress_action(DismProgress progress) { Task.Run(() => { if (this.InvokeRequired) { this.Invoke((MethodInvoker)(() => { loadingProgressBar.Maximum = progress.Total; int s = progress.Current; loadingProgressBar.Value = s; })); } else { loadingProgressBar.Maximum = progress.Total; int s = progress.Current; loadingProgressBar.Value = s; } }); }
private void DismProgress(DismProgress e) { progressBar1.Value = Convert.ToInt32(Math.Floor((double)e.Current / e.Total * 100)); }
private void OnDismInstallProgress(DismProgress e) { ProgressBarIndicator.ProgressBar.Value = Convert.ToInt32(Math.Floor((double)e.Current / e.Total * 100)); }
private void Progress(DismProgress progress) { throw new NotImplementedException(); }
private void refresh_progress_bar_step(DismProgress dism_progress) { this.progressBar_step.Maximum = dism_progress.Total; this.progressBar_step.Minimum = 0; this.progressBar_step.Value = dism_progress.Current; }