internal void ReportProgressChanged() { if (context != null) { context.Post((o) => ((ProgressMonitor)o).OnProgressChanged(), this); } else { OnProgressChanged(); } if (parentMonitor != null) { parentMonitor.ReportProgressChanged(); } }
void ReportProgressChanged() { if (context != null) { context.Post((o) => OnProgressChanged(), null); } else { OnProgressChanged(); } if (parentMonitor != null) { parentMonitor.ReportProgressChanged(); } }
static void MonitorStep(ProgressMonitor mon, string?msg, int work1) { mon.OnStep(msg, work1); mon.ReportProgressChanged(); }