Example #1
0
 /// <summary>
 /// Raises ProgressChanged event.
 /// </summary>
 public void OnProgressChanged(ProgressChangedArgs progressChangedArgs)
 {
     ProgressChanged?.Invoke(this, progressChangedArgs);
 }
 /// <summary>
 /// Updates the progress bar.
 /// </summary>
 public void UpdatePercent(object o, ProgressChangedArgs progressChangedArgs)
 {
     progressBar.Invoke(new Action(delegate() { progressBar.Value = progressChangedArgs.Percent; }));
     lbProgress.Invoke(new Action(delegate() { lbProgress.Text = progressChangedArgs.Percent.ToString() + "%"; }));
 }