예제 #1
0
        public static StatusText FromString(string sFromStr, List<JsonObject> ljnUrls = null)
        {
            StatusText stFinal = new StatusText();
            stFinal.m_ltstWords = StatusTextElement.ListFromString(sFromStr, ljnUrls);

            return stFinal;
        }
예제 #2
0
        public static StatusText FromString(string sFromStr, List <JsonObject> ljnUrls = null)
        {
            StatusText stFinal = new StatusText();

            stFinal.m_ltstWords = StatusTextElement.ListFromString(sFromStr, ljnUrls);

            return(stFinal);
        }
예제 #3
0
 public void UpdateFromStatus(Status stStatus)
 {
     m_stStatusText = stStatus.StatusText;
     m_bAlreadyUpdating = true;
     rtbTextBox.Rtf = m_stStatusText.ToRTF(m_fntFont);
     m_bAlreadyUpdating = false;
 }
예제 #4
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;
            }
        }