コード例 #1
0
        int AddGroupComponentRows(QueryContainer query, QueryGroup queryRootGroup, ExpandedContainer expandedContainer, ComponentQueryDeclarationModel componentQueryDeclarationModel)
        {
            int nbRows = 0;

            foreach (QueryGroup subGroup in query.GetSubGroups(queryRootGroup))
            {
                nbRows += AddGroupComponentRows(query, subGroup, expandedContainer, componentQueryDeclarationModel);
            }

            foreach (QueryComponent component in query.GetComponentsInQuery(queryRootGroup))
            {
                nbRows += AddComponentRow(component.Component, componentQueryDeclarationModel, expandedContainer);
            }

            return(nbRows);
        }