// // Summary: Creates a thread and calls the client SendMessage function. // private void Event_SendMessage(object sender, Events.StreamMessageArgs e) { Thread thread = new Thread(() => this.client.SendMessage(e.Message)); thread.Name = "Message Sending"; thread.Start(); }
// // Summary: Updates the visual display to include the message for the client. // private void Event_SetMessage(object sender, Events.StreamMessageArgs e) { if (e.LocalMessage) { GameMessageBox.Text += ">> " + e.Message + Environment.NewLine; UserMessageBox.Text = ""; } else { GameMessageBox.Text += e.Message + Environment.NewLine; } }