Пример #1
0
        internal void ReportProgressChanged()
        {
            if (context != null)
            {
                context.Post((o) => ((ProgressMonitor)o).OnProgressChanged(), this);
            }
            else
            {
                OnProgressChanged();
            }

            if (parentMonitor != null)
            {
                parentMonitor.ReportProgressChanged();
            }
        }
Пример #2
0
        void ReportProgressChanged()
        {
            if (context != null)
            {
                context.Post((o) => OnProgressChanged(), null);
            }
            else
            {
                OnProgressChanged();
            }

            if (parentMonitor != null)
            {
                parentMonitor.ReportProgressChanged();
            }
        }
Пример #3
0
 static void MonitorStep(ProgressMonitor mon, string?msg, int work1)
 {
     mon.OnStep(msg, work1);
     mon.ReportProgressChanged();
 }