/// <summary> /// Set the current progress in percent. /// </summary> /// <param name="uPercent">Percent of work finished.</param> /// <returns>Returns <c>true</c> if the caller should continue /// the current work.</returns> public bool SetProgress(uint uPercent) { Debug.Assert(m_bStartedLogging && !m_bEndedLogging); bool b = true; if (m_sbDefault != null) { if (!m_sbDefault.SetProgress(uPercent)) { b = false; } } if (m_slForm != null) { if (!m_slForm.SetProgress(uPercent)) { b = false; } } if (m_fTaskbarWindow != null) { TaskbarList.SetProgressValue(m_fTaskbarWindow, uPercent, 100); } return(b); }
public bool SetProgress(uint uPercent) { Debug.Assert(m_bActive); bool b = !m_bCancelled; if (m_sbDefault != null) { if (!m_sbDefault.SetProgress(uPercent)) { b = false; } } if (m_slForm != null) { if (!m_slForm.SetProgress(uPercent)) { b = false; } } if (m_fTaskbarWindow != null) { TaskbarList.SetProgressValue(m_fTaskbarWindow, uPercent, 100); SetStyle((uPercent != 0) ? TbpFlag.Normal : TbpFlag.Indeterminate); } return(b); }
/// <summary> /// Set the current progress in percent. /// </summary> /// <param name="uPercent">Percent of work finished.</param> /// <returns>Returns <c>true</c> if the caller should continue /// the current work.</returns> public bool SetProgress(uint uPercent) { Debug.Assert(m_bStartedLogging && !m_bEndedLogging); bool b = true; if (m_sbDefault != null) { b &= m_sbDefault.SetProgress(uPercent); } if (m_slForm != null) { b &= m_slForm.SetProgress(uPercent); } return(b); }