Example #1
0
        private void txtSendMessage_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar != '\r')
            {
                return;
            }
            e.Handled = true;

            iconfRTC.SendMessageToMeeting(txtSendMessage.Text);
            txtSendMessage.Clear();
        }
Example #2
0
 private void chatText_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         string textToSend = chatText.Text.Trim();
         if (textToSend != "")
         {
             rtcControl.SendMessageToMeeting(textToSend);
             chatLog.AppendText("You : " + textToSend + Environment.NewLine);
             chatText.Clear();
             e.Handled = true;
         }
     }
 }