Пример #1
0
 private void OnProgressReport(object sender, ...)
 {
     var myBackGroundWorker = (BackGroundWorker)sender;
     // calculate the actual progress using earlier received progress reports
     MyProgressReport report = ...
                               OnReportProgress(report);
 }
Пример #2
0
 protected virtual void OnReportProgress(MyProgressReport report)
 {
     this.ReportProgress?.Invoke(this, report);
 }