//撤销
 private void barButtonItem22_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         ICommand m_undoCommand = new UndoCommandClass();
         m_undoCommand.OnCreate(Variable.pMapFrm.mainMapControl.Object);
         m_undoCommand.OnClick();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), "异常");
     }
 }
Esempio n. 2
0
        private void btnUndo_Click(object sender, EventArgs e)
        {
            //try
            //{
            axMap.MousePointer = esriControlsMousePointer.esriPointerArrow;
            ICommand m_undoCommand = new UndoCommandClass();

            m_undoCommand.OnCreate(axMap.Object);
            m_undoCommand.OnClick();
            //}
            //catch (Exception ex)
            //{
            //}
        }