Пример #1
0
        /// <summary>
        /// Check if the user cancelled the current work.
        /// </summary>
        /// <returns>Returns <c>true</c> if the caller should continue
        /// the current work.</returns>
        public bool ContinueWork()
        {
            Debug.Assert(m_bStartedLogging && !m_bEndedLogging);

            bool b = true;

            if (m_slForm != null)
            {
                b &= m_slForm.ContinueWork();
            }
            if (m_sbDefault != null)
            {
                b &= m_sbDefault.ContinueWork();
            }

            return(b);
        }
Пример #2
0
        public bool ContinueWork()
        {
            Debug.Assert(m_bActive);

            bool b = !m_bCancelled;

            if (m_slForm != null)
            {
                if (!m_slForm.ContinueWork())
                {
                    b = false;
                }
            }
            if (m_sbDefault != null)
            {
                if (!m_sbDefault.ContinueWork())
                {
                    b = false;
                }
            }

            return(b);
        }