private void PrintLine(ChatMessage message) { this.textBox1.AppendText(message.ToString()); this.textBox1.SelectionStart = this.textBox1.Text.Length - 1; this.textBox1.SelectionLength = 0; this.textBox1.ScrollToCaret(); }
void _room_DataEmitted(CampfireHoon.ChatMessage message) { if (ChatMessage != null) { ChatMessage(new ChatMessage { Message = message.Body, Username = message.Username }); } }