Esempio n. 1
0
        private void btn_StartEditing_Click(object sender, EventArgs e)
        {
            ICommand cmd = new ControlsEditingStartCommandClass();

            cmd.OnCreate(m_MapControl.Object);
            cmd.OnClick();
            m_EngineEditProperties = new EngineEditorClass();
            if (m_EngineEditProperties.TargetLayer != null)
            {
                EnableControlInEditorToolBar();

                cbx_EditTask.SelectedIndex = 0;
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 编辑
        /// </summary>
        public static void startEdit(AxMapControl axMapControl)
        {
            if (axMapControl == null)
            {
                return;
            }
            ICommand startEdit = new ControlsEditingStartCommandClass();
            ICommand pCommand= new ControlsEditingEditToolClass();

            startEdit.OnCreate(axMapControl.Object);
            startEdit.OnClick();
            pCommand.OnCreate(axMapControl.Object);
            axMapControl.CurrentTool = (ITool)pCommand;
        }