public void SetExprHost(NumericIndicatorExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            base.SetExprHost(exprHost, reportObjectModel);
            if (this.m_gaugeInputValue != null && this.ExprHost.GaugeInputValueHost != null)
            {
                this.m_gaugeInputValue.SetExprHost(this.ExprHost.GaugeInputValueHost, reportObjectModel);
            }
            IList <NumericIndicatorRangeExprHost> numericIndicatorRangesHostsRemotable = this.ExprHost.NumericIndicatorRangesHostsRemotable;

            if (this.m_numericIndicatorRanges != null && numericIndicatorRangesHostsRemotable != null)
            {
                for (int i = 0; i < this.m_numericIndicatorRanges.Count; i++)
                {
                    NumericIndicatorRange numericIndicatorRange = this.m_numericIndicatorRanges[i];
                    if (numericIndicatorRange != null && numericIndicatorRange.ExpressionHostID > -1)
                    {
                        numericIndicatorRange.SetExprHost(numericIndicatorRangesHostsRemotable[numericIndicatorRange.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            if (this.m_minimumValue != null && this.ExprHost.MinimumValueHost != null)
            {
                this.m_minimumValue.SetExprHost(this.ExprHost.MinimumValueHost, reportObjectModel);
            }
            if (this.m_maximumValue != null && this.ExprHost.MaximumValueHost != null)
            {
                this.m_maximumValue.SetExprHost(this.ExprHost.MaximumValueHost, reportObjectModel);
            }
        }
Ejemplo n.º 2
0
        public object PublishClone(AutomaticSubtotalContext context)
        {
            NumericIndicatorRange numericIndicatorRange = (NumericIndicatorRange)base.MemberwiseClone();

            numericIndicatorRange.m_gaugePanel = (GaugePanel)context.CurrentDataRegionClone;
            if (this.m_startValue != null)
            {
                numericIndicatorRange.m_startValue = (GaugeInputValue)this.m_startValue.PublishClone(context);
            }
            if (this.m_endValue != null)
            {
                numericIndicatorRange.m_endValue = (GaugeInputValue)this.m_endValue.PublishClone(context);
            }
            if (this.m_decimalDigitColor != null)
            {
                numericIndicatorRange.m_decimalDigitColor = (ExpressionInfo)this.m_decimalDigitColor.PublishClone(context);
            }
            if (this.m_digitColor != null)
            {
                numericIndicatorRange.m_digitColor = (ExpressionInfo)this.m_digitColor.PublishClone(context);
            }
            return(numericIndicatorRange);
        }