internal override object PublishClone(AutomaticSubtotalContext context)
        {
            IndicatorImage indicatorImage = (IndicatorImage)base.PublishClone(context);

            if (m_hueColor != null)
            {
                indicatorImage.m_hueColor = (ExpressionInfo)m_hueColor.PublishClone(context);
            }
            if (m_transparency != null)
            {
                indicatorImage.m_transparency = (ExpressionInfo)m_transparency.PublishClone(context);
            }
            return(indicatorImage);
        }
Example #2
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.GaugePanel:
                    m_gaugePanel = reader.ReadReference <GaugePanel>(this);
                    break;

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

                case MemberName.StartValue:
                    m_startValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.EndValue:
                    m_endValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.Color:
                    m_color = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ScaleFactor:
                    m_scaleFactor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.IndicatorStyle:
                    m_indicatorStyle = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.IndicatorImage:
                    m_indicatorImage = (IndicatorImage)reader.ReadRIFObject();
                    break;

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.GaugeInputValue:
                    m_gaugeInputValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.TransformationType:
                    m_transformationType = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.TransformationScope:
                    m_transformationScope = reader.ReadString();
                    break;

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

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

                case MemberName.IndicatorStyle:
                    m_indicatorStyle = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.IndicatorImage:
                    m_indicatorImage = (IndicatorImage)reader.ReadRIFObject();
                    break;

                case MemberName.ScaleFactor:
                    m_scaleFactor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.IndicatorStates:
                    m_indicatorStates = reader.ReadGenericListOfRIFObjects <IndicatorState>();
                    break;

                case MemberName.ResizeMode:
                    m_resizeMode = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Angle:
                    m_angle = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.StateDataElementName:
                    m_stateDataElementName = reader.ReadString();
                    break;

                case MemberName.StateDataElementOutput:
                    m_stateDataElementOutput = (DataElementOutputTypes)reader.ReadEnum();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
                if (reader.IntermediateFormatVersion.CompareTo(Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatVersion.SQL16) < 0)
                {
                    if (!m_styleClass.GetAttributeInfo("BorderStyle", out AttributeInfo styleAttribute))
                    {
                        m_styleClass.AddAttribute("BorderStyle", new ExpressionInfo
                        {
                            StringValue  = "Solid",
                            ConstantType = DataType.String
                        });
                    }
                    else
                    {
                        styleAttribute.IsExpression = false;
                        styleAttribute.Value        = "Solid";
                    }
                }
            }
        }
 internal IndicatorImage(Microsoft.ReportingServices.ReportIntermediateFormat.IndicatorImage defObject, GaugePanel gaugePanel)
     : base(defObject, gaugePanel)
 {
 }