//识别查询 private void Btn_Identify_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ICommand cmd = new ControlsMapIdentifyTool(); cmd.OnCreate(axMapControl_1.Object); axMapControl_1.CurrentTool = cmd as ITool; }
//属性 private void BtnIdentify_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ICommand Cmd = new ControlsMapIdentifyTool(); Cmd.OnCreate(this.axMapControl1.Object); this.axMapControl1.CurrentTool = Cmd as ITool; }
private void identify_mapToolbarItem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { ICommand identifyTool = new ControlsMapIdentifyTool(); identifyTool.OnCreate(m_mapControl.Object); m_mapControl.CurrentTool = identifyTool as ITool; }
//identify private void Bbtn_ident_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Check(); Bbtn_ident.Down = true; ICommand Cmd = new ControlsMapIdentifyTool(); Cmd.OnCreate(this.axMapControl1.Object); this.axMapControl1.CurrentTool = Cmd as ITool; axMapControl1.MousePointer = esriControlsMousePointer.esriPointerIdentify; }
private void identify_Click(object sender, EventArgs e) { if (identifyflag == 0) { ICommand pcommand = new ControlsMapIdentifyTool(); pcommand.OnCreate(axMapControl1.Object); axMapControl1.CurrentTool = pcommand as ITool; identify.Checked = true; identifyflag = 1; } else { axMapControl1.CurrentTool = null; identify.Checked = false; identifyflag = 0; } }
private void toolStripButton11_Click(object sender, EventArgs e) { ICommand pCommand = new ControlsMapIdentifyTool(); pCommand.OnCreate(this.axMapControl1.Object); this.axMapControl1.CurrentTool = pCommand as ITool; }