//恢复
 private void barButtonItem21_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         ICommand m_redoCommand = new RedoCommandClass();
         m_redoCommand.OnCreate(Variable.pMapFrm.mainMapControl.Object);
         m_redoCommand.OnClick();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), "异常");
     }
 }
Beispiel #2
0
        private void btnRedo_Click(object sender, EventArgs e)
        {
            //try
            //{
            axMap.MousePointer = esriControlsMousePointer.esriPointerArrow;
            ICommand m_redoCommand = new RedoCommandClass();

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