public RawMessageForm(MessageStore messages) { InitializeComponent(); int count = messages.MsgCount; for (int i = 0; i < count; i++) { listBox1.Items.Add(messages.GetFormmattedMsg(i)); } }
public void UpdateMessages(MessageStore store) { while (m_msgIndex < store.MsgCount) { HtmlElement he = m_msgViewer.Document.CreateElement(string.Empty); he.InnerHtml = store.GetFormmattedMsg(m_msgIndex); m_msgViewer.Document.Body.AppendChild(he); m_msgIndex++; } m_msgViewer.Document.Window.ScrollTo(0, m_msgViewer.Document.Body.ScrollRectangle.Height); timer.Start(); }