private void SetActiveProgress(ProgressCollector progress) { Current.Dispatcher.VerifyAccess(); currentProgress = progress; if (progress == null) { _statusBarView.HideProgress(); return; } progress.ProgressMonitorDisposed += progress_ProgressMonitorDisposed; if (progress.ProgressMonitorIsDisposed) { progress_ProgressMonitorDisposed(progress, null); return; } progress.PropertyChanged += progress_PropertyChanged; }