惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

人人都是产品经理
人人都是产品经理
Apple Machine Learning Research
Apple Machine Learning Research
云风的 BLOG
云风的 BLOG
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
量子位
GbyAI
GbyAI
腾讯CDC
T
Tailwind CSS Blog
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
D
Docker
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
Jina AI
Jina AI
IT之家
IT之家
Y
Y Combinator Blog

博客园 - fatrick

媒体网关在OCS系统架构中的作用 图文详解配置ocs边缘服务器 实战部署UC平台(OCS VOIP GW and Exchange 2007) OCS服务器Ports and Protocols OCS发待办事宜 ActiveDirectory获取用户 增强SEO的div+css命名规则 WEB网站大数据量的性能解决方案 Mapxtreme2005 两点之间画直线 mapxtreme2005 创建各种样式 MapxTreme2005 画扇区 MapXtreme 2005 基础代码 MapXtreme创建本地TAB文件 - fatrick - 博客园 如何在DataGrid里面产生滚动条 [转载]关于项目管理的一点体会 [IE&FireFox兼容]JS对select操作 个人网站建设八部曲 帮助解决网页和JS文件中的中文编码问题的小工具 FLV Player下载
mapxtreme2005 改变选中的图元样式
fatrick · 2008-06-18 · via 博客园 - fatrick

MapInfo.Styles.CompositeStyle compositeStyle = GetOpaquesStyle(false, System.Drawing.Color.Blue);

            if (map != null)
            {
                if (map.Layers[SysCommon.TempTableAlias] != null)
                {
                    map.Layers.Remove(SysCommon.TempTableAlias);
                }
                if (map.Layers[SysCommon.TempLayerAlias] != null)
                {
                    map.Layers.Remove(SysCommon.TempLayerAlias);
                }
            }
            MapInfo.Engine.Session.Current.Catalog.CloseTable(SysCommon.TempTableAlias);

            MapInfo.Data.Table newtable = CreateCustomerTempTable(SysCommon.TempTableAlias, LayerAlias);
            MapInfo.Data.MIConnection conn = new MIConnection();
            conn.Open();
            MapInfo.Data.MICommand comm = conn.CreateCommand();
            comm.CommandText = "delete " + SysCommon.TempTableAlias;
            comm.Prepare();
            comm.ExecuteNonQuery();

            foreach (Feature ftr in irfc)
            {
                comm.CommandText = "insert into " + newtable.Alias + " select * from " + LayerAlias + " where MI_Key ='" + ftr.Key + "'";              
                comm.ExecuteNonQuery();              
            }                 
            conn.Close();
            (map.Layers[SysCommon.TempTableAlias] as FeatureLayer).Modifiers.Clear();
            MapInfo.Mapping.FeatureOverrideStyleModifier fsmtemp = new MapInfo.Mapping.FeatureOverrideStyleModifier(null, compositeStyle);
            (map.Layers[SysCommon.TempTableAlias] as FeatureLayer).Modifiers.Append(fsmtemp);