public void SendPeerMessage() { SendMessageToChat(userName + ": " + peerMessageBox.text, Message.MessageType.playerMessage); rtm.SendPeerMessage(peerUserBox.text, peerMessageBox.text, true); peerMessageBox.text = ""; }
private void btnSendPeerMsg_Click(object sender, EventArgs e) { SendMessageToChat(username + " send peer message: " + tbPeerMsg.Text); rtm.SendPeerMessage(tbPeer.Text, tbPeerMsg.Text, true); tbPeerMsg.Text = ""; }