Ejemplo n.º 1
0
        internal void SetExprHost(StateIndicatorExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            SetExprHost((GaugePanelItemExprHost)exprHost, reportObjectModel);
            if (m_gaugeInputValue != null && ExprHost.GaugeInputValueHost != null)
            {
                m_gaugeInputValue.SetExprHost(ExprHost.GaugeInputValueHost, reportObjectModel);
            }
            if (m_maximumValue != null && ExprHost.MaximumValueHost != null)
            {
                m_maximumValue.SetExprHost(ExprHost.MaximumValueHost, reportObjectModel);
            }
            if (m_minimumValue != null && ExprHost.MinimumValueHost != null)
            {
                m_minimumValue.SetExprHost(ExprHost.MinimumValueHost, reportObjectModel);
            }
            if (m_indicatorImage != null && ExprHost.IndicatorImageHost != null)
            {
                m_indicatorImage.SetExprHost(ExprHost.IndicatorImageHost, reportObjectModel);
            }
            IList <IndicatorStateExprHost> indicatorStatesHostsRemotable = ExprHost.IndicatorStatesHostsRemotable;

            if (m_indicatorStates == null || indicatorStatesHostsRemotable == null)
            {
                return;
            }
            for (int i = 0; i < m_indicatorStates.Count; i++)
            {
                IndicatorState indicatorState = m_indicatorStates[i];
                if (indicatorState != null && indicatorState.ExpressionHostID > -1)
                {
                    indicatorState.SetExprHost(indicatorStatesHostsRemotable[indicatorState.ExpressionHostID], reportObjectModel);
                }
            }
        }
Ejemplo n.º 2
0
 internal void SetExprHost(IndicatorStateExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
     m_exprHost = exprHost;
     m_exprHost.SetReportObjectModel(reportObjectModel);
     if (m_startValue != null && ExprHost.StartValueHost != null)
     {
         m_startValue.SetExprHost(ExprHost.StartValueHost, reportObjectModel);
     }
     if (m_endValue != null && ExprHost.EndValueHost != null)
     {
         m_endValue.SetExprHost(ExprHost.EndValueHost, reportObjectModel);
     }
     if (m_indicatorImage != null && ExprHost.IndicatorImageHost != null)
     {
         m_indicatorImage.SetExprHost(ExprHost.IndicatorImageHost, reportObjectModel);
     }
 }