Esempio n. 1
0
        private void endEdit_Click(object sender, EventArgs e)
        {
            ICommand m_StopEditCmd = new StopEditCmd();

            m_StopEditCmd.OnCreate(axMapControl1.Object);
            m_StopEditCmd.OnClick();
            axMapControl1.CurrentTool  = null;
            axMapControl1.MousePointer = esriControlsMousePointer.esriPointerDefault;
        }
Esempio n. 2
0
        /// <summary>
        /// 结束编辑
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void endEdit_Click(object sender, EventArgs e)
        {
            ICommand m_StopEditCmd = new StopEditCmd();

            m_StopEditCmd.OnCreate(axMapControl1.Object);
            m_StopEditCmd.OnClick();
            axMapControl1.CurrentTool  = null;
            axMapControl1.MousePointer = esriControlsMousePointer.esriPointerDefault;
            //按钮处于不可用状态 清空图层选择
            selectLayer.Items.Clear();
            selectLayer.Text    = "";
            saveEdit.Enabled    = false;
            endEdit.Enabled     = false;
            selectLayer.Enabled = false;
            addLayer.Enabled    = false;
        }