Exemple #1
0
 /// <summary>
 /// Other way to handle progress for 1%.
 /// </summary>
 /// <param name="sender">Object that generates this event.</param>
 /// <param name="e">Arguments.</param>
 private void Read_ReportProgress2(object sender, ProgressBarEventArgs e)
 {
     progressBar1.Increment(1);
     Text = progressBar1.Value + "%";
 }
Exemple #2
0
 /// <summary>
 /// If progress is 1% it launches progress event.
 /// </summary>
 /// <param name="stage"></param>
 private void StageCompleted(int stage)
 {
     ProgressBarEventArgs args = new ProgressBarEventArgs();
     args.Stage = stage;
     ReportProgress(this, args);
 }
Exemple #3
0
 /// <summary>
 /// It handles progress for 1%.
 /// </summary>
 /// <param name="sender">Object that generates this event.</param>
 /// <param name="e">Arguments.</param>
 private void Read_ReportProgress(object sender, ProgressBarEventArgs e)
 {
     progressBar1.Value = e.Stage;
     Text = e.Stage + "%";
 }