예제 #1
0
 /// <summary>
 /// //Check ListView时发生的事件,点选Root不发生改变,点选ChildNode使Layer改变其可见与否
 /// </summary>
 private void treeViewLayers_AfterCheck(object sender, TreeViewEventArgs e)
 {
     if (e.Node.Parent == null && !e.Node.Checked)            //Map根节点的不可取消显示
     {
         e.Node.Checked = true;
     }
     else
     {
         myMap.ChangeSelectedLayerVisible(e.Node.Index); //改变空间数据的显示与否
     }
     UpdateMapImg();                                     //更新视图
 }