示例#1
0
文件: Form1.cs 项目: Geiko/WinForms
 /// <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 + "%";
 }
示例#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);
 }
示例#3
0
文件: Form1.cs 项目: Geiko/WinForms
 /// <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 + "%";
 }