public void StartLogging(string strOperation, bool bWriteOperationToLog)
        {
            Debug.Assert(!m_bStartedLogging && !m_bEndedLogging);

            if (m_sbDefault != null)
            {
                m_sbDefault.StartLogging(strOperation, bWriteOperationToLog);
            }
            if (m_slForm != null)
            {
                m_slForm.StartLogging(strOperation, bWriteOperationToLog);
            }
            if (m_fTaskbarWindow != null)
            {
                TaskbarList.SetProgressValue(m_fTaskbarWindow, 0, 100);
                TaskbarList.SetProgressState(m_fTaskbarWindow, TbpFlag.Normal);
            }

            m_bStartedLogging = true;

            if (bWriteOperationToLog)
            {
                m_vCachedMessages.Add(new KeyValuePair <LogStatusType, string>(
                                          LogStatusType.Info, strOperation));
            }
        }
Exemplo n.º 2
0
        public void StartLogging(string strOperation, bool bWriteOperationToLog)
        {
            Debug.Assert(!m_bActive);

            if (m_sbDefault != null)
            {
                m_sbDefault.StartLogging(strOperation, bWriteOperationToLog);
            }
            if (m_slForm != null)
            {
                m_slForm.StartLogging(strOperation, bWriteOperationToLog);
            }
            if (m_fTaskbarWindow != null)
            {
                TaskbarList.SetProgressValue(m_fTaskbarWindow, 0, 100);
                SetStyle(TbpFlag.Indeterminate);
            }

            m_bActive = true;

            if (bWriteOperationToLog)
            {
                m_vCachedMessages.Add(new KeyValuePair <LogStatusType, string>(
                                          LogStatusType.Info, strOperation));
            }
        }
Exemplo n.º 3
0
        public void StartLogging(string strOperation, bool bWriteOperationToLog)
        {
            Debug.Assert(!m_bStartedLogging && !m_bEndedLogging);

            if (m_sbDefault != null)
            {
                m_sbDefault.StartLogging(strOperation, bWriteOperationToLog);
            }
            if (m_slForm != null)
            {
                m_slForm.StartLogging(strOperation, bWriteOperationToLog);
            }

            m_bStartedLogging = true;

            if (bWriteOperationToLog)
            {
                m_vCachedMessages.Add(new KeyValuePair <LogStatusType, string>(
                                          LogStatusType.Info, strOperation));
            }
        }