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;
                }
            }
        }
예제 #2
0
        internal object PublishClone(AutomaticSubtotalContext context)
        {
            MapPolygonRules mapPolygonRules = (MapPolygonRules)MemberwiseClone();

            mapPolygonRules.m_map = context.CurrentMapClone;
            if (m_mapColorRule != null)
            {
                mapPolygonRules.m_mapColorRule = (MapColorRule)m_mapColorRule.PublishClone(context);
            }
            return(mapPolygonRules);
        }
 internal MapPolygonRules(Microsoft.ReportingServices.ReportIntermediateFormat.MapPolygonRules defObject, MapPolygonLayer mapPolygonLayer, Map map)
 {
     m_defObject       = defObject;
     m_mapPolygonLayer = mapPolygonLayer;
     m_map             = map;
 }