private void WomanVideoFormcs_FormClosing(object sender, FormClosingEventArgs e) { StopSend(); StringBuilder strFriendID = new StringBuilder(this.friendID); StopReceive(strFriendID); StopAudioCapture(); StopVideoCapture(); if (ChatClient.Login._UserInfo.Kind == (int)ChatEngine.UserKind.ServiceWoman) { ChatClient.Login._UserInfo.nUserState = 0; ChatClient.Login._ClientEngine.Send(ChatEngine.NotifyType.Request_UserState, ChatClient.Login._UserInfo); } _newChatRoom.SendMessage(_newChatRoom.m_strVideoChatEnd); _newChatRoom.videoForm = null; }
private void TextBox1KeyUp(object sender, KeyEventArgs e) { if (e.Key != Key.Enter) { return; } if (textBox1.Text.Trim().Length <= 0) { return; } Room.SendMessage(textBox1.Text); if (!Room.IsGroupChat && textBox1.Text[0] != '/') { RoomOnOnMessageRecieved(this, Program.LobbyClient.Me, textBox1.Text, DateTime.Now, Client.LobbyMessageType.Standard); } //Program.LobbyClient.Chatting.SendChatMessage(Id, textBox1.Text); textBox1.Text = ""; }
private void WomanVideoFormcs_FormClosing(object sender, FormClosingEventArgs e) { _newChatRoom.SendMessage(_newChatRoom.m_strVideoChatEnd); Main._frmVideoChat = null; }