Example #1
0
    public bool ClearRoom(RoomControl control)
    {
        int index = rooms.IndexOf(control);

        if (index != -1)
        {
            control.Clear();
            rooms.RemoveAt(index);
            return(true);
        }
        return(false);
    }