Пример #1
0
 private void lbMessage_KeyDown(object sender, KeyEventArgs e)   // Нажатия кнопок
 {
     if (e.Key == Key.Enter)
     {
         if (client != null)
         {
             client.SendMSG(lbMessage.Text, ID);
             lbMessage.Text = string.Empty;
         }
     }
 }