Exemple #1
0
        public void AddLogText(LogType a_logType, String a_text)
        {
            if (m_control == null)
            {
                return;
            }

            switch (a_logType)
            {
            case LogType.Error:
            {
                FormsUtils.RTBAppendLine(m_control, a_text, m_colorError);
                break;
            }

            case LogType.Warning:
            {
                FormsUtils.RTBAppendLine(m_control, a_text, m_colorWarning);
                break;
            }

            default: // LogType.Info
            {
                FormsUtils.RTBAppendLine(m_control, a_text, m_colorInfo);
                break;
            }
            }

            FormsUtils.RTBScrollToEnd(m_control); // Do we want to do this?

            TrimToLineLimit();
        }