コード例 #1
0
        internal override void SetExprHost(MapLayerExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            base.SetExprHost(exprHost, reportObjectModel);
            if (m_mapPolygonRules != null && ExprHost.MapPolygonRulesHost != null)
            {
                m_mapPolygonRules.SetExprHost(ExprHost.MapPolygonRulesHost, reportObjectModel);
            }
            if (m_mapCenterPointRules != null && ExprHost.MapPointRulesHost != null)
            {
                m_mapCenterPointRules.SetExprHost(ExprHost.MapPointRulesHost, reportObjectModel);
            }
            if (base.MapDataRegionName != null)
            {
                return;
            }
            if (m_mapPolygonTemplate != null && ExprHost.MapPolygonTemplateHost != null)
            {
                m_mapPolygonTemplate.SetExprHost(ExprHost.MapPolygonTemplateHost, reportObjectModel);
            }
            if (m_mapCenterPointTemplate != null && ExprHost.MapPointTemplateHost != null)
            {
                m_mapCenterPointTemplate.SetExprHost(ExprHost.MapPointTemplateHost, reportObjectModel);
            }
            IList <MapPolygonExprHost> mapPolygonsHostsRemotable = ExprHost.MapPolygonsHostsRemotable;

            if (m_mapPolygons == null || mapPolygonsHostsRemotable == null)
            {
                return;
            }
            for (int i = 0; i < m_mapPolygons.Count; i++)
            {
                MapPolygon mapPolygon = m_mapPolygons[i];
                if (mapPolygon != null && mapPolygon.ExpressionHostID > -1)
                {
                    mapPolygon.SetExprHost(mapPolygonsHostsRemotable[mapPolygon.ExpressionHostID], reportObjectModel);
                }
            }
        }
コード例 #2
0
 internal void SetExprHost(MapPolygonExprHost exprHost, ObjectModelImpl reportObjectModel)
 {
     Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
     SetExprHost((MapSpatialElementExprHost)exprHost, reportObjectModel);
     if (m_mapPolygonTemplate != null && ExprHost.MapPolygonTemplateHost != null)
     {
         m_mapPolygonTemplate.SetExprHost(ExprHost.MapPolygonTemplateHost, reportObjectModel);
     }
     if (m_mapCenterPointTemplate != null && ExprHost.MapPointTemplateHost != null)
     {
         m_mapCenterPointTemplate.SetExprHost(ExprHost.MapPointTemplateHost, reportObjectModel);
     }
 }