Esempio n. 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;
        }
Esempio n. 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);
        }
 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;
            }
        }