public void SetExprHost(ChartDerivedSeriesExprHost exprHost, ObjectModelImpl reportObjectModel) { Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)"); this.m_exprHost = exprHost; this.m_exprHost.SetReportObjectModel(reportObjectModel); if (this.m_series != null && this.m_exprHost.ChartSeriesHost != null) { this.m_series.SetExprHost(this.m_exprHost.ChartSeriesHost, reportObjectModel); } IList <ChartFormulaParameterExprHost> chartFormulaParametersHostsRemotable = this.m_exprHost.ChartFormulaParametersHostsRemotable; if (this.m_chartFormulaParameters != null && chartFormulaParametersHostsRemotable != null) { for (int i = 0; i < this.m_chartFormulaParameters.Count; i++) { ChartFormulaParameter chartFormulaParameter = this.m_chartFormulaParameters[i]; if (chartFormulaParameter != null && chartFormulaParameter.ExpressionHostID > -1) { chartFormulaParameter.SetExprHost(chartFormulaParametersHostsRemotable[chartFormulaParameter.ExpressionHostID], reportObjectModel); } } } }
internal void SetExprHost(ChartDerivedSeriesExprHost exprHost, ObjectModelImpl reportObjectModel) { Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)"); m_exprHost = exprHost; m_exprHost.SetReportObjectModel(reportObjectModel); if (m_series != null && m_exprHost.ChartSeriesHost != null) { m_series.SetExprHost(m_exprHost.ChartSeriesHost, reportObjectModel); } IList <ChartFormulaParameterExprHost> chartFormulaParametersHostsRemotable = m_exprHost.ChartFormulaParametersHostsRemotable; if (m_chartFormulaParameters == null || chartFormulaParametersHostsRemotable == null) { return; } for (int i = 0; i < m_chartFormulaParameters.Count; i++) { ChartFormulaParameter chartFormulaParameter = m_chartFormulaParameters[i]; if (chartFormulaParameter != null && chartFormulaParameter.ExpressionHostID > -1) { chartFormulaParameter.SetExprHost(chartFormulaParametersHostsRemotable[chartFormulaParameter.ExpressionHostID], reportObjectModel); } } }