private void DispatchProgressReport(TypedEvent typedEvent)
        {
            var @event = typedEvent as ProgressReportEvent;

            if (@event != null)
            {
                Wpf.WpfUtilities.Post(this,
                                      () => _statusBar.ReportProgress(@event.DisplayText, @event.Completed, @event.Total));
            }
        }
Exemplo n.º 2
0
        private void DispatchProgressReport(TypedEvent typedEvent)
        {
            var progressReportEvent = typedEvent as ProgressReportEvent;

            if (progressReportEvent == null)
            {
                return;
            }

            _synchronizationContextProvider.DispatchThreadContext.Post(() =>
                                                                       _statusBar.ReportProgress(progressReportEvent.DisplayText, progressReportEvent.Completed, progressReportEvent.Total));
        }