// Invoke the ReportProgress event; protected void OnReportProgress(EventReportProgressArgs e) { if (ReportProgress != null) { ReportProgress(null, e); } }
// Invoke the ReportProgress event; protected virtual void OnReportProgress(EventReportProgressArgs e) { if (EventProgress != null) { EventProgress(this, e); } }