About ControlsAddDataCommandClass

1185
3
09-05-2013 01:51 AM
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.
Reply
0 Kudos
3 Replies
Occasional Contributor
Code sample would be nice you know...;)
Reply
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();                
           
}
Reply
0 Kudos
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();

}
Reply
0 Kudos