Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 void _room_DataEmitted(CampfireHoon.ChatMessage message)
 {
     if (ChatMessage != null)
     {
         ChatMessage(new ChatMessage {
             Message = message.Body, Username = message.Username
         });
     }
 }