Ejemplo n.º 1
0
        /// <summary>
        /// Clear all received logging data.
        /// </summary>
        public void ClearAll()
        {
            mLogMessageLock.EnterWriteLock();

            try
            {
                mLogMessages.Clear();
            }
            finally
            {
                mLogMessageLock.ExitWriteLock();
            }

            if (mLogProvider != null)
            {
                mLogProvider.Clear();
            }

            if (mLoggerTree != null)
            {
                ((ILogPresenter)mLoggerTree).ClearAll();
            }

            if (mMessageDetails != null)
            {
                ((ILogPresenter)mMessageDetails).ClearAll();
            }

            ((ILogPresenter)mLogWindow).ClearAll();
            ((ILogPresenter)mBookmarks).ClearAll();
            ((ILogPresenter)mFilter).ClearAll();
            ((ILogPresenter)mLogScript).ClearAll();
            ((ILogPresenter)mLogStatistic).ClearAll();

            // Force an update of the UI.
            TmrUpdateTick(this, EventArgs.Empty);
        }