Пример #1
0
 //保存编辑
 private void btnSaveEdit_Click(object sender, EventArgs e)
 {
     try
     {
         ICommand m_saveEditCom = new SaveEditCommandClass();
         m_saveEditCom.OnCreate(axMap.Object);
         m_saveEditCom.OnClick();
     }
     catch (Exception ex)
     {
     }
 }
 //保存要素编辑
 private void barButtonItem20_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         ICommand m_saveEditCom = new SaveEditCommandClass();
         m_saveEditCom.OnCreate(Variable.pMapFrm.mainMapControl.Object);
         m_saveEditCom.OnClick();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), "异常");
     }
 }