public void UpdateFromStatus(Status stStatus) { m_stStatusText = stStatus.StatusText; m_bAlreadyUpdating = true; rtbTextBox.Rtf = m_stStatusText.ToRTF(m_fntFont); m_bAlreadyUpdating = false; }
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; } }