Exemplo n.º 1
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            GaugeScale gaugeScale = (GaugeScale)base.PublishClone(context);

            if (m_action != null)
            {
                gaugeScale.m_action = (Action)m_action.PublishClone(context);
            }
            if (m_scaleRanges != null)
            {
                gaugeScale.m_scaleRanges = new List <ScaleRange>(m_scaleRanges.Count);
                foreach (ScaleRange scaleRange in m_scaleRanges)
                {
                    gaugeScale.m_scaleRanges.Add((ScaleRange)scaleRange.PublishClone(context));
                }
            }
            if (m_customLabels != null)
            {
                gaugeScale.m_customLabels = new List <CustomLabel>(m_customLabels.Count);
                foreach (CustomLabel customLabel in m_customLabels)
                {
                    gaugeScale.m_customLabels.Add((CustomLabel)customLabel.PublishClone(context));
                }
            }
            if (m_interval != null)
            {
                gaugeScale.m_interval = (ExpressionInfo)m_interval.PublishClone(context);
            }
            if (m_intervalOffset != null)
            {
                gaugeScale.m_intervalOffset = (ExpressionInfo)m_intervalOffset.PublishClone(context);
            }
            if (m_logarithmic != null)
            {
                gaugeScale.m_logarithmic = (ExpressionInfo)m_logarithmic.PublishClone(context);
            }
            if (m_logarithmicBase != null)
            {
                gaugeScale.m_logarithmicBase = (ExpressionInfo)m_logarithmicBase.PublishClone(context);
            }
            if (m_maximumValue != null)
            {
                gaugeScale.m_maximumValue = (GaugeInputValue)m_maximumValue.PublishClone(context);
            }
            if (m_minimumValue != null)
            {
                gaugeScale.m_minimumValue = (GaugeInputValue)m_minimumValue.PublishClone(context);
            }
            if (m_multiplier != null)
            {
                gaugeScale.m_multiplier = (ExpressionInfo)m_multiplier.PublishClone(context);
            }
            if (m_reversed != null)
            {
                gaugeScale.m_reversed = (ExpressionInfo)m_reversed.PublishClone(context);
            }
            if (m_gaugeMajorTickMarks != null)
            {
                gaugeScale.m_gaugeMajorTickMarks = (GaugeTickMarks)m_gaugeMajorTickMarks.PublishClone(context);
            }
            if (m_gaugeMinorTickMarks != null)
            {
                gaugeScale.m_gaugeMinorTickMarks = (GaugeTickMarks)m_gaugeMinorTickMarks.PublishClone(context);
            }
            if (m_maximumPin != null)
            {
                gaugeScale.m_maximumPin = (ScalePin)m_maximumPin.PublishClone(context);
            }
            if (m_minimumPin != null)
            {
                gaugeScale.m_minimumPin = (ScalePin)m_minimumPin.PublishClone(context);
            }
            if (m_scaleLabels != null)
            {
                gaugeScale.m_scaleLabels = (ScaleLabels)m_scaleLabels.PublishClone(context);
            }
            if (m_tickMarksOnTop != null)
            {
                gaugeScale.m_tickMarksOnTop = (ExpressionInfo)m_tickMarksOnTop.PublishClone(context);
            }
            if (m_toolTip != null)
            {
                gaugeScale.m_toolTip = (ExpressionInfo)m_toolTip.PublishClone(context);
            }
            if (m_hidden != null)
            {
                gaugeScale.m_hidden = (ExpressionInfo)m_hidden.PublishClone(context);
            }
            if (m_width != null)
            {
                gaugeScale.m_width = (ExpressionInfo)m_width.PublishClone(context);
            }
            return(gaugeScale);
        }
Exemplo n.º 2
0
 internal GaugeScale(Microsoft.ReportingServices.ReportIntermediateFormat.GaugeScale defObject, GaugePanel gaugePanel)
 {
     m_defObject  = defObject;
     m_gaugePanel = gaugePanel;
 }