public override object PublishClone(AutomaticSubtotalContext context)
        {
            GaugeTickMarks gaugeTickMarks = (GaugeTickMarks)base.PublishClone(context);

            if (this.m_interval != null)
            {
                gaugeTickMarks.m_interval = (ExpressionInfo)this.m_interval.PublishClone(context);
            }
            if (this.m_intervalOffset != null)
            {
                gaugeTickMarks.m_intervalOffset = (ExpressionInfo)this.m_intervalOffset.PublishClone(context);
            }
            return(gaugeTickMarks);
        }
Exemple #2
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(GaugeScale.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Action:
                    this.m_action = (Action)reader.ReadRIFObject();
                    break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
		public GaugeTickMarks(AspNetCore.ReportingServices.ReportIntermediateFormat.GaugeTickMarks defObject, GaugePanel gaugePanel)
			: base(defObject, gaugePanel)
		{
			base.m_defObject = defObject;
			base.m_gaugePanel = gaugePanel;
		}