public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(MapLineLayer.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.MapLineTemplate:
                    this.m_mapLineTemplate = (MapLineTemplate)reader.ReadRIFObject();
                    break;

                case MemberName.MapLineRules:
                    this.m_mapLineRules = (MapLineRules)reader.ReadRIFObject();
                    break;

                case MemberName.MapLines:
                    this.m_mapLines = reader.ReadGenericListOfRIFObjects <MapLine>();
                    break;

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

            mapLineRules.m_map = context.CurrentMapClone;
            if (this.m_mapSizeRule != null)
            {
                mapLineRules.m_mapSizeRule = (MapSizeRule)this.m_mapSizeRule.PublishClone(context);
            }
            if (this.m_mapColorRule != null)
            {
                mapLineRules.m_mapColorRule = (MapColorRule)this.m_mapColorRule.PublishClone(context);
            }
            return(mapLineRules);
        }
 public MapLineRules(AspNetCore.ReportingServices.ReportIntermediateFormat.MapLineRules defObject, MapLineLayer mapLineLayer, Map map)
 {
     this.m_defObject    = defObject;
     this.m_mapLineLayer = mapLineLayer;
     this.m_map          = map;
 }