Example #1
0
 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;
         }
     });
 }
Example #2
0
 private void DismProgress(DismProgress e)
 {
     progressBar1.Value = Convert.ToInt32(Math.Floor((double)e.Current / e.Total * 100));
 }
Example #3
0
 private void OnDismInstallProgress(DismProgress e)
 {
     ProgressBarIndicator.ProgressBar.Value = Convert.ToInt32(Math.Floor((double)e.Current / e.Total * 100));
 }
Example #4
0
 private void Progress(DismProgress progress)
 {
     throw new NotImplementedException();
 }
Example #5
0
 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;
 }