Esempio n. 1
0
 internal void Initialize(InitializationContext context)
 {
     context.ExprHostBuilder.GroupStart(m_name);
     m_saveGroupExprValues = context.HasPreviousAggregates;
     DataRendererInitialize(context);
     if (m_groupExpressions != null)
     {
         for (int i = 0; i < m_groupExpressions.Count; i++)
         {
             ExpressionInfo expressionInfo = m_groupExpressions[i];
             expressionInfo.GroupExpressionInitialize(context);
             context.ExprHostBuilder.GroupExpression(expressionInfo);
         }
     }
     if (m_groupLabel != null)
     {
         m_groupLabel.Initialize("Label", context);
         context.ExprHostBuilder.GenericLabel(m_groupLabel);
     }
     if (m_filters != null)
     {
         for (int j = 0; j < m_filters.Count; j++)
         {
             m_filters[j].Initialize(context);
         }
     }
     if (m_parent != null)
     {
         context.ExprHostBuilder.GroupParentExpressionsStart();
         for (int k = 0; k < m_parent.Count; k++)
         {
             ExpressionInfo expressionInfo2 = m_parent[k];
             expressionInfo2.GroupExpressionInitialize(context);
             context.ExprHostBuilder.GroupParentExpression(expressionInfo2);
         }
         context.ExprHostBuilder.GroupParentExpressionsEnd();
     }
     if (m_userSortExpressions != null)
     {
         context.ExprHostBuilder.UserSortExpressionsStart();
         for (int l = 0; l < m_userSortExpressions.Count; l++)
         {
             ExpressionInfo expression = m_userSortExpressions[l];
             context.ExprHostBuilder.UserSortExpression(expression);
         }
         context.ExprHostBuilder.UserSortExpressionsEnd();
     }
     if (m_variables != null && m_variables.Count != 0)
     {
         context.ExprHostBuilder.VariableValuesStart();
         for (int m = 0; m < m_variables.Count; m++)
         {
             Variable variable = m_variables[m];
             variable.Initialize(context);
             context.ExprHostBuilder.VariableValueExpression(variable.Value);
         }
         context.ExprHostBuilder.VariableValuesEnd();
     }
     if (m_pageBreak != null)
     {
         m_pageBreak.Initialize(context);
     }
     if (m_pageName != null)
     {
         m_pageName.Initialize("PageName", context);
         context.ExprHostBuilder.PageName(m_pageName);
     }
     context.ExprHostBuilder.GroupEnd();
 }