Example #1
0
        public void AddMessage(AlertType at, string sMessage, params object[] rgo)
        {
            if (!m_fInit)
            {
                return;
            }

            if (at != AlertType.None && m_ia != null)
            {
                m_ia.DoAlert(at);
            }

            string s2;

            string s = String.Format(sMessage, rgo);

            m_act.RunOnUiThread(() =>
            {
                s2 = m_tv.Text;

                s = s + "\n" + s2;

                m_tv.Text = s;
            });
        }
Example #2
0
        public void AddMessageCore(AlertType at, string sMessage, params object[] rgo)
        {
            ITextDocument iDoc = m_rec.Document;

            string s2;

            string s = String.Format(sMessage, rgo);

            iDoc.GetText(TextGetOptions.None, out s2);
            s = s + "\r" + s2;

            iDoc.SetText(TextSetOptions.None, s);
            if (at != AlertType.None)
            {
                m_ia.DoAlert(at);
            }
        }