protected void OnBuiltinReportProgress(ReportProgressIndicator pi, int percent_current, int percent_overall, string infomsg) { if (BuiltinReportProgress != null) { BuiltinReportProgress(this, new ReportProgressEvent() { Progress = pi, PercentageInCurrentStep = percent_current, PercentageOverall = percent_overall, InfoMessage = infomsg }); } }
public void OnProgress(ReportProgressIndicator progress, int percentageincurrentstep, int percentageoverall, string infomessage) { if (Progress != null) { var e = new ReportProgressEvent() { InfoMessage = infomessage, PercentageInCurrentStep = percentageincurrentstep, PercentageOverall = percentageoverall, Progress = progress }; Progress(this, e); } }