Ejemplo n.º 1
0
        private void Delete()
        {
            ICommand cmd = new ControlsEditingClearCommandClass();

            cmd.OnCreate(m_MapControl);
            cmd.OnClick();
        }
 //删除要素
 private void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         pMapControl.MousePointer = esriControlsMousePointer.esriPointerArrow;
         ICommand m_delFeatCom = new ControlsEditingClearCommandClass();
         m_delFeatCom.OnCreate(pMapControl.Object);
         m_delFeatCom.OnClick();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
         LogHelper.WriteLog(typeof(Form_Editor), ex, "删除要素");
     }
 }
Ejemplo n.º 3
0
 private void Delet_feature_Click(object sender, EventArgs e)
 {
     ICommand pCommand = new ControlsEditingClearCommandClass();
     pCommand.OnCreate(axMapControl1.Object);
     pCommand.OnClick();
 }