Example #1
0
 private void broadcastBtn_Click(object sender, EventArgs e)
 {
     if (broadcastTBox.Text.Length > 0)
     {
         game.Broadcast(broadcastTBox.Text);
         this.serverChatRTBox.AppendText(String
                                         .Format(
                                             "{0}[SERVER] {1}",
                                             serverChatRTBox.TextLength == 0 ? String.Empty : Environment.NewLine,
                                             broadcastTBox.Text
                                             ));
         this.broadcastTBox.Clear();
         this.broadcastTBox.Focus();
     }
     else
     {
         return;
     }
 }