About ControlsAddDataCommandClass

1503
3
09-05-2013 01:51 AM
ramazantekin
New Contributor
Hi everyone, when i used Add data dialog in arcengine application, dialog is opening but sometimes when i selected multiple layer , just added last selected layer, for example , selected 5 layer in dialog, but just added 1 layer to mapcontrol.
how can i solve this problem , thanks.
0 Kudos
3 Replies
MarcinDruzgala
Occasional Contributor
Code sample would be nice you know...;)
0 Kudos
by Anonymous User
Not applicable
Original User: programcir

i used it

private void BtnToolAddDataClick(object sender, EventArgs e)
{
     ControlsAddDataCommand cmd = new ControlsAddDataCommandClass();
     cmd.OnCreate(mainMapControl.Object);
     cmd.OnClick();                
           
}
0 Kudos
ramazantekin
New Contributor
Code sample would be nice you know...;)


i used it

private void BtnToolAddDataClick(object sender, EventArgs e)
{
ControlsAddDataCommand cmd = new ControlsAddDataCommandClass();
cmd.OnCreate(mainMapControl.Object);
cmd.OnClick();

}
0 Kudos