private void btnLyrMgr_Click(object sender, EventArgs e) { object c = _canvas.LayerContainer.VectorHost; frmLayerManager frm = new frmLayerManager(); frm.Apply(_vectorHostLayer.Map as IMap); frm.ShowDialog(); }
private void button6_Click(object sender, EventArgs e) { //IFeatureLayer lyr = agileMapControl1.Map.LayerContainer.GetLayerByName("tes1"); //(lyr.FeatureClass.DataSource as Ds).RemoveFeature(); frmLayerManager lyrm = new frmLayerManager(); lyrm.Apply(agileMapControl1.Map); lyrm.Show(); }