public void OnRoomCreate(RoomInfos room) { if (!m_rooms.ContainsKey(room.GetRoomName())) { Invoke(new Action<RoomInfos>(InternalRoomCreated), room); } }
private void InternalRoomCreated(RoomInfos room) { string roomname = room.GetRoomName(); if (m_rooms.ContainsKey(roomname)) return; m_rooms.Add(roomname, room); ListBox rooms = (room.isRanked ? RankedList : UnrankedList); //Remove DevBot games if (!room.playerList[0].Trim().ToLower().Equals("devbot")) rooms.Items.Add(roomname); }
private void InternalRoomCreated(RoomInfos room) { string roomname = room.GetRoomName(); if (m_rooms.ContainsKey(roomname)) return; m_rooms.Add(roomname, room); ListBox rooms = (room.isRanked ? RankedList : UnrankedList); rooms.Items.Add(roomname); }
private void InternalRoomCreated(RoomInfos room) { string roomname = room.GetRoomName(); if (m_rooms.ContainsKey(roomname)) return; m_rooms.Add(roomname, room); ListBox rooms = (room.isRanked ? RankedList : UnrankedList); if (FilterActive.Checked) { if (!m_rooms[roomname].hasStarted) { if (m_rooms[roomname].Contains(FilterTextBox.Text.ToLower()) || m_rooms[roomname].roomName.ToLower().Contains(FilterTextBox.Text.ToLower()) || FilterTextBox.Text == "Search" || FilterTextBox.Text == "") { rooms.Items.Add(roomname); } } } else { if (m_rooms[roomname].Contains(FilterTextBox.Text.ToLower()) || m_rooms[roomname].roomName.ToLower().Contains(FilterTextBox.Text.ToLower()) || FilterTextBox.Text == "Search" || FilterTextBox.Text == "") { rooms.Items.Add(roomname); } } UpdateServerInfo(); }