private void UpdateBaseMonitor() { ThrowIfCancellationRequested(); if (m_progress.HasValue) { m_baseMonitor.SetProgress((int)(100 * m_progress / m_taskSize), m_text); } else { m_baseMonitor.SetIndeterminate(m_text); } }