//移动要素
 private void barButtonItem23_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         ICommand m_moveTool = new MoveFeatureToolClass();
         m_moveTool.OnCreate(Variable.pMapFrm.mainMapControl.Object);
         m_moveTool.OnClick();
         Variable.pMapFrm.mainMapControl.CurrentTool = m_moveTool as ITool;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), "异常");
     }
 }
示例#2
0
 //移动要素
 private void btnSelMove_Click(object sender, EventArgs e)
 {
     try
     {
         ICommand m_moveTool = new MoveFeatureToolClass();
         m_moveTool.OnCreate(axMap.Object);
         m_moveTool.OnClick();
         axMap.CurrentTool  = m_moveTool as ITool;
         axMap.MousePointer = esriControlsMousePointer.esriPointerArrow;
     }
     catch (Exception ex)
     {
     }
 }