private void OnProgressReport(object sender, ...) { var myBackGroundWorker = (BackGroundWorker)sender; // calculate the actual progress using earlier received progress reports MyProgressReport report = ... OnReportProgress(report); }
protected virtual void OnReportProgress(MyProgressReport report) { this.ReportProgress?.Invoke(this, report); }