Exemple #1
0
 protected virtual void OnReportProgress(ReportProgressEventArgs e)
 {
     if (ReportProgress != null)
     {
         ReportProgress(this, e);
     }
 }
Exemple #2
0
 private void library_ReportProgress(object sender, ReportProgressEventArgs e)
 {
     if (e.ProgressPercentage < 100)
         this.progressBar.Value = (int)(e.ProgressPercentage);
     else if (e.ProgressPercentage == 100)
     {
         statusStrip.Items.Clear();
         progressBar = null;
         SetStatusStrip();
         library.ReportProgress -= library_ReportProgress;
     }
 }
Exemple #3
0
 protected virtual void OnReportProgress(ReportProgressEventArgs e)
 {
     if (ReportProgress != null)
         ReportProgress(this, e);
 }