Exemplo n.º 1
0
        internal virtual object PublishClone(AutomaticSubtotalContext context)
        {
            MapAppearanceRule mapAppearanceRule = (MapAppearanceRule)MemberwiseClone();

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