示例#1
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.UseCustomPolygonTemplate:
                    m_useCustomPolygonTemplate = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MapPolygonTemplate:
                    m_mapPolygonTemplate = (MapPolygonTemplate)reader.ReadRIFObject();
                    break;

                case MemberName.UseCustomPointTemplate:
                    m_useCustomCenterPointTemplate = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MapPointTemplate:
                    m_mapCenterPointTemplate = (MapPointTemplate)reader.ReadRIFObject();
                    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.MapPolygonTemplate:
                    m_mapPolygonTemplate = (MapPolygonTemplate)reader.ReadRIFObject();
                    break;

                case MemberName.MapPolygonRules:
                    m_mapPolygonRules = (MapPolygonRules)reader.ReadRIFObject();
                    break;

                case MemberName.MapPointTemplate:
                    m_mapCenterPointTemplate = (MapPointTemplate)reader.ReadRIFObject();
                    break;

                case MemberName.MapPointRules:
                    m_mapCenterPointRules = (MapPointRules)reader.ReadRIFObject();
                    break;

                case MemberName.MapPolygons:
                    m_mapPolygons = reader.ReadGenericListOfRIFObjects <MapPolygon>();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        internal override object PublishClone(AutomaticSubtotalContext context)
        {
            MapPolygonTemplate mapPolygonTemplate = (MapPolygonTemplate)base.PublishClone(context);

            if (m_scaleFactor != null)
            {
                mapPolygonTemplate.m_scaleFactor = (ExpressionInfo)m_scaleFactor.PublishClone(context);
            }
            if (m_centerPointOffsetX != null)
            {
                mapPolygonTemplate.m_centerPointOffsetX = (ExpressionInfo)m_centerPointOffsetX.PublishClone(context);
            }
            if (m_centerPointOffsetY != null)
            {
                mapPolygonTemplate.m_centerPointOffsetY = (ExpressionInfo)m_centerPointOffsetY.PublishClone(context);
            }
            if (m_showLabel != null)
            {
                mapPolygonTemplate.m_showLabel = (ExpressionInfo)m_showLabel.PublishClone(context);
            }
            if (m_labelPlacement != null)
            {
                mapPolygonTemplate.m_labelPlacement = (ExpressionInfo)m_labelPlacement.PublishClone(context);
            }
            return(mapPolygonTemplate);
        }
示例#4
0
 internal MapPolygonTemplate(Microsoft.ReportingServices.ReportIntermediateFormat.MapPolygonTemplate defObject, MapPolygonLayer shapeLayer, Map map)
     : base(defObject, shapeLayer, map)
 {
 }