private void ConfigureStepEventListeners(bool start)
{
ThreadHelper.ThrowIfNotOnUIThread();
foreach (IProgressStepOperation stepOperation in this.progressStepOperations)
{
if (start)
{
stepOperation.Step.StateChanged += this.OnStepStateChanged;
}
else
{
stepOperation.Step.StateChanged -= this.OnStepStateChanged;
}
}
}