Example #1
0
 /// <summary>
 /// Requests the UI Thread, through the BackgroundWorker (bw), to log the received progress in the specified ProgressBar (progressBar).
 /// </summary>
 public static void Progress(BackgroundWorker bw, int progress, ProgressiveWidgetsEnum.ProgressBar progressBar)
 {
     bw.ReportProgress(0, new ProgressBarWrapper(progressBar, progress));
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <c>ProgressBarWrapper</c> class with the specified <c>ProgressiveWidgetsEnum.ProgressBar</c> and value.
 /// </summary>
 public ProgressBarWrapper(ProgressiveWidgetsEnum.ProgressBar progressBar, int value)
 {
     ProgressBar = progressBar;
     Value       = value;
 }