Пример #1
0
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            ScalePin scalePin = (ScalePin)base.PublishClone(context);

            if (m_location != null)
            {
                scalePin.m_location = (ExpressionInfo)m_location.PublishClone(context);
            }
            if (m_enable != null)
            {
                scalePin.m_enable = (ExpressionInfo)m_enable.PublishClone(context);
            }
            if (m_pinLabel != null)
            {
                scalePin.m_pinLabel = (PinLabel)m_pinLabel.PublishClone(context);
            }
            return(scalePin);
        }
Пример #2
0
 internal ScalePin(Microsoft.ReportingServices.ReportIntermediateFormat.ScalePin defObject, GaugePanel gaugePanel)
     : base(defObject, gaugePanel)
 {
     m_defObject  = defObject;
     m_gaugePanel = gaugePanel;
 }
Пример #3
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Action:
                    m_action = (Action)reader.ReadRIFObject();
                    break;

                case MemberName.Name:
                    m_name = reader.ReadString();
                    break;

                case MemberName.ScaleRanges:
                    m_scaleRanges = reader.ReadGenericListOfRIFObjects <ScaleRange>();
                    break;

                case MemberName.CustomLabels:
                    m_customLabels = reader.ReadGenericListOfRIFObjects <CustomLabel>();
                    break;

                case MemberName.Interval:
                    m_interval = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.IntervalOffset:
                    m_intervalOffset = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Logarithmic:
                    m_logarithmic = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.LogarithmicBase:
                    m_logarithmicBase = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MaximumValue:
                    m_maximumValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.MinimumValue:
                    m_minimumValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.Multiplier:
                    m_multiplier = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Reversed:
                    m_reversed = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.GaugeMajorTickMarks:
                    m_gaugeMajorTickMarks = (GaugeTickMarks)reader.ReadRIFObject();
                    break;

                case MemberName.GaugeMinorTickMarks:
                    m_gaugeMinorTickMarks = (GaugeTickMarks)reader.ReadRIFObject();
                    break;

                case MemberName.MaximumPin:
                    m_maximumPin = (ScalePin)reader.ReadRIFObject();
                    break;

                case MemberName.MinimumPin:
                    m_minimumPin = (ScalePin)reader.ReadRIFObject();
                    break;

                case MemberName.ScaleLabels:
                    m_scaleLabels = (ScaleLabels)reader.ReadRIFObject();
                    break;

                case MemberName.TickMarksOnTop:
                    m_tickMarksOnTop = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ToolTip:
                    m_toolTip = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Hidden:
                    m_hidden = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Width:
                    m_width = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ExprHostID:
                    m_exprHostID = reader.ReadInt32();
                    break;

                case MemberName.ID:
                    m_id = reader.ReadInt32();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }