public void DoEsriMapIdentify(IGeometry geo)
        {
            switch (cbLayers.SelectedIndex)
            {
            case 0:
                //最顶图层
                break;

            case 1:
                //可视图层
                break;

            case 2:
                //可选图层
                break;

            case 3:
                //全部图层
                break;

            default:
                //当前选项中的图层
                IdentifyLayerItem layerItem = (IdentifyLayerItem)cbLayers.SelectedItem;
                DoLayerIdentify(layerItem.Layer, geo);
                break;
            }
        }
        private void AddFeatureLayerToList(IFeatureLayer featLayer)
        {
            IdentifyLayerItem layerItem = new IdentifyLayerItem();

            layerItem.Layer     = featLayer;
            layerItem.LayerName = featLayer.Name;
            ((List <IdentifyLayerItem>)cbLayers.ItemsSource).Add(layerItem);
        }
        private void InitializeLayerList()
        {
            cbLayers.ItemsSource = null;

            cbLayers.SelectedValuePath = "Layer";
            cbLayers.DisplayMemberPath = "LayerName";

            List <IdentifyLayerItem> layerItemList = new List <IdentifyLayerItem>();

            IdentifyLayerItem layerItem;

            layerItem           = new IdentifyLayerItem();
            layerItem.LayerName = "最顶图层";
            layerItemList.Add(layerItem);


            layerItem           = new IdentifyLayerItem();
            layerItem.LayerName = "可视图层";
            layerItemList.Add(layerItem);


            layerItem           = new IdentifyLayerItem();
            layerItem.LayerName = "可选图层";
            layerItemList.Add(layerItem);


            layerItem           = new IdentifyLayerItem();
            layerItem.LayerName = "全部图层";
            layerItemList.Add(layerItem);

            UID uid = new UIDClass();

            uid.Value = "{40A9E885-5533-11d0-98BE-00805F7CED21}";
            IEnumLayer layers = m_mapCtrl.Map.Layers[null, true];

            if (layers != null)
            {
                layers.Reset();
                ILayer layer = layers.Next();
                while (layer != null)
                {
                    layerItem           = new IdentifyLayerItem();
                    layerItem.Layer     = layer;
                    layerItem.LayerName = layer.Name;
                    layerItemList.Add(layerItem);

                    layer = layers.Next();
                }
            }

            cbLayers.ItemsSource = layerItemList;

            cbLayers.SelectedIndex = 0;
        }