private void btnEnterRoom_Click(object sender, EventArgs e)
        {
            if (!gbLobby.Enabled || !btnEnterRoom.Enabled)
            {
                return;
            }
            if (listRooms.SelectedIndex >= 0 && m_UserName.Length > 0 && m_UserToken.Length > 0)
            {
                string roomName = listRooms.Items[listRooms.SelectedIndex].ToString();

                if (roomName != null && roomName.Length > 0 && roomName.Contains('('))
                {
                    roomName = roomName.Substring(0, roomName.IndexOf('(')).Trim();
                }

                if (roomName != null && roomName.Length > 0)
                {
                    EnterRoomRequest request = new EnterRoomRequest();
                    request.UserName  = m_UserName;
                    request.UserToken = m_UserToken;
                    request.RoomName  = roomName;

                    m_Client.SendString("room/enter/" + WebMessage.ToJsonString <EnterRoomRequest>(request));
                }
            }
        }
        private void btnEnterRoom_Click(object sender, EventArgs e)
        {
            if (!gbLobby.Enabled || !btnEnterRoom.Enabled) return;
            if (listRooms.SelectedIndex >= 0 && m_UserName.Length > 0 && m_UserToken.Length > 0)
            {
                string roomName = listRooms.Items[listRooms.SelectedIndex].ToString();

                if (roomName != null && roomName.Length > 0 && roomName.Contains('('))
                    roomName = roomName.Substring(0, roomName.IndexOf('(')).Trim();

                if (roomName != null && roomName.Length > 0)
                {
                    EnterRoomRequest request = new EnterRoomRequest();
                    request.UserName = m_UserName;
                    request.UserToken = m_UserToken;
                    request.RoomName = roomName;

                    m_Client.SendString("room/enter/" + WebMessage.ToJsonString<EnterRoomRequest>(request));
                }
            }
        }