Пример #1
0
 public void UpdateFromStatus(Status stStatus)
 {
     m_stStatusText     = stStatus.StatusText;
     m_bAlreadyUpdating = true;
     rtbTextBox.Rtf     = m_stStatusText.ToRTF(m_fntFont);
     m_bAlreadyUpdating = false;
 }
Пример #2
0
        private void UpdateText(string sNewText)
        {
            if (!m_bAlreadyUpdating)
            {
                m_bAlreadyUpdating = true;

                int iStart = rtbTextBox.SelectionStart;
                m_stStatusText            = StatusText.FromString(sNewText);
                rtbTextBox.Rtf            = m_stStatusText.ToRTF(m_fntFont);
                rtbTextBox.SelectionStart = iStart;

                m_bAlreadyUpdating = false;
            }
        }