public void SetExprHosts(ReportExprHost reportExprHost, ObjectModelImpl reportObjectModel) { Global.Tracer.Assert(reportExprHost != null && reportObjectModel != null, "(reportExprHost != null && reportObjectModel != null)"); if (!this.m_exprHostInitialized) { for (int i = 0; i < this.m_expressions.Length; i++) { ExpressionInfo expressionInfo = this.m_expressions[i]; if (expressionInfo.ExprHostID >= 0) { if (this.m_expressionHosts == null) { this.m_expressionHosts = new AggregateParamExprHost[this.m_expressions.Length]; } AggregateParamExprHost aggregateParamExprHost = reportExprHost.AggregateParamHostsRemotable[expressionInfo.ExprHostID]; aggregateParamExprHost.SetReportObjectModel(reportObjectModel); this.m_expressionHosts[i] = aggregateParamExprHost; } } this.m_exprHostInitialized = true; this.m_exprHostReportObjectModel = reportObjectModel; } else if (this.m_exprHostReportObjectModel != reportObjectModel && this.m_expressionHosts != null) { for (int j = 0; j < this.m_expressionHosts.Length; j++) { if (this.m_expressionHosts[j] != null) { this.m_expressionHosts[j].SetReportObjectModel(reportObjectModel); } } this.m_exprHostReportObjectModel = reportObjectModel; } }
internal void SetExprHosts(ReportExprHost reportExprHost, ObjectModelImpl reportObjectModel) { Global.Tracer.Assert(reportExprHost != null && reportObjectModel != null, "(reportExprHost != null && reportObjectModel != null)"); if (!m_exprHostInitialized) { for (int i = 0; i < m_expressions.Length; i++) { ExpressionInfo expressionInfo = m_expressions[i]; if (expressionInfo.ExprHostID >= 0) { if (m_expressionHosts == null) { m_expressionHosts = new AggregateParamExprHost[m_expressions.Length]; } AggregateParamExprHost aggregateParamExprHost = reportExprHost.AggregateParamHostsRemotable[expressionInfo.ExprHostID]; aggregateParamExprHost.SetReportObjectModel(reportObjectModel); m_expressionHosts[i] = aggregateParamExprHost; } } m_exprHostInitialized = true; m_exprHostReportObjectModel = reportObjectModel; } else { if (m_exprHostReportObjectModel == reportObjectModel || m_expressionHosts == null) { return; } for (int j = 0; j < m_expressionHosts.Length; j++) { if (m_expressionHosts[j] != null) { m_expressionHosts[j].SetReportObjectModel(reportObjectModel); } } m_exprHostReportObjectModel = reportObjectModel; } }