Ejemplo n.º 1
0
 private void button6_Click(object sender, EventArgs e)
 {
     if (comboBox2.Text != "")
     {
         ILayer layer = mdoc.get_Layer(comboBox1.SelectedIndex, comboBox2.SelectedIndex);
         mdoc.get_Map(comboBox1.SelectedIndex).DeleteLayer(layer);
         map = mdoc.get_Map(comboBox1.SelectedIndex);
         axMapControl1.Map = map;
         axMapControl1.Refresh();
         comboBox2.Items.Remove(layer.Name);
         checkedListBox1.Items.Remove(layer.Name);
     }
 }