public override string ToString()
{
return string.Format("{0}: {1}\r\n", Username, Body);
}
}
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(); }