public PropertyQueryForm(string selectLayerName, AxMapControl mapControl)
 {
     InitializeComponent();
     EventDeal();
     this.mapControl      = mapControl;
     layers               = MapUtil.GetAllLayers(mapControl);
     this.selectLayerName = selectLayerName;
     // ListBox2ItemHandler = new EventHandler(listBoxControl2_SelectedIndexChanged);
 }
Ejemplo n.º 2
0
        private void UpdateLayerCombox()
        {
            toolStripComboBox2.Items.Clear();
            List <ILayer> layers = MapUtil.GetAllLayers(this.axMapControl1);

            layers.ForEach(p =>
            {
                if (p is FeatureLayer)
                {
                    toolStripComboBox2.Items.Add(p.Name);
                }
            });
        }