Ejemplo n.º 1
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(MapPolygonLayer.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.MapPolygonTemplate:
                    this.m_mapPolygonTemplate = (MapPolygonTemplate)reader.ReadRIFObject();
                    break;

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

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

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

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

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Ejemplo n.º 2
0
        public object PublishClone(AutomaticSubtotalContext context)
        {
            MapPolygonRules mapPolygonRules = (MapPolygonRules)base.MemberwiseClone();

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