Beispiel #1
0
        public virtual object PublishClone(AutomaticSubtotalContext context)
        {
            MapAppearanceRule mapAppearanceRule = (MapAppearanceRule)base.MemberwiseClone();

            mapAppearanceRule.m_map            = context.CurrentMapClone;
            mapAppearanceRule.m_mapVectorLayer = context.CurrentMapVectorLayerClone;
            if (this.m_dataValue != null)
            {
                mapAppearanceRule.m_dataValue = (ExpressionInfo)this.m_dataValue.PublishClone(context);
            }
            if (this.m_distributionType != null)
            {
                mapAppearanceRule.m_distributionType = (ExpressionInfo)this.m_distributionType.PublishClone(context);
            }
            if (this.m_bucketCount != null)
            {
                mapAppearanceRule.m_bucketCount = (ExpressionInfo)this.m_bucketCount.PublishClone(context);
            }
            if (this.m_startValue != null)
            {
                mapAppearanceRule.m_startValue = (ExpressionInfo)this.m_startValue.PublishClone(context);
            }
            if (this.m_endValue != null)
            {
                mapAppearanceRule.m_endValue = (ExpressionInfo)this.m_endValue.PublishClone(context);
            }
            if (this.m_mapBuckets != null)
            {
                mapAppearanceRule.m_mapBuckets = new List <MapBucket>(this.m_mapBuckets.Count);
                foreach (MapBucket mapBucket in this.m_mapBuckets)
                {
                    mapAppearanceRule.m_mapBuckets.Add((MapBucket)mapBucket.PublishClone(context));
                }
            }
            if (this.m_legendText != null)
            {
                mapAppearanceRule.m_legendText = (ExpressionInfo)this.m_legendText.PublishClone(context);
            }
            return(mapAppearanceRule);
        }
Beispiel #2
0
 public MapAppearanceRule(AspNetCore.ReportingServices.ReportIntermediateFormat.MapAppearanceRule defObject, MapVectorLayer mapVectorLayer, Map map)
 {
     this.m_defObject      = defObject;
     this.m_mapVectorLayer = mapVectorLayer;
     this.m_map            = map;
 }