Beispiel #1
0
 private void TbMessage_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (client != null)
         {
             client.SendMssage(tbMessage.Text, id);
             tbMessage.Text = string.Empty;
         }
     }
 }