Esempio n. 1
0
 internal void SetExprHost(ChartDataPointExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null);
     m_exprHost = exprHost;
     m_exprHost.SetReportObjectModel(reportObjectModel);
     if (m_action != null)
     {
         if (m_exprHost.ActionInfoHost != null)
         {
             m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
         }
         else if (m_exprHost.ActionHost != null)
         {
             m_action.SetExprHost(m_exprHost.ActionHost, reportObjectModel);
         }
     }
     if (m_styleClass != null && m_exprHost.StyleHost != null)
     {
         m_exprHost.StyleHost.SetReportObjectModel(reportObjectModel);
         m_styleClass.SetStyleExprHost(m_exprHost.StyleHost);
     }
     if (m_markerStyleClass != null && m_exprHost.MarkerStyleHost != null)
     {
         m_exprHost.MarkerStyleHost.SetReportObjectModel(reportObjectModel);
         m_markerStyleClass.SetStyleExprHost(m_exprHost.MarkerStyleHost);
     }
     if (m_dataLabel != null && m_dataLabel.StyleClass != null && m_exprHost.DataLabelStyleHost != null)
     {
         m_dataLabel.SetExprHost(m_exprHost.DataLabelStyleHost, reportObjectModel);
     }
     if (m_customProperties != null && m_exprHost.CustomPropertyHostsRemotable != null)
     {
         m_customProperties.SetExprHost(m_exprHost.CustomPropertyHostsRemotable, reportObjectModel);
     }
 }
Esempio n. 2
0
 internal override void SetExprHost(ReportExprHost reportExprHost, ObjectModelImpl reportObjectModel)
 {
     if (base.ExprHostID < 0)
     {
         return;
     }
     Global.Tracer.Assert(reportExprHost != null && reportObjectModel != null);
     m_exprHost = reportExprHost.ImageHostsRemotable[base.ExprHostID];
     ReportItemSetExprHost(m_exprHost, reportObjectModel);
     if (m_action != null)
     {
         if (m_exprHost.ActionInfoHost != null)
         {
             m_action.SetExprHost(m_exprHost.ActionInfoHost, reportObjectModel);
         }
         else if (m_exprHost.ActionHost != null)
         {
             m_action.SetExprHost(m_exprHost.ActionHost, reportObjectModel);
         }
     }
 }