Beispiel #1
0
        private void Copy()
        {
            ICommand cmd = new ControlsEditingCopyCommandClass();

            cmd.OnCreate(m_MapControl);
            cmd.OnClick();
        }
Beispiel #2
0
        private void button8_Click(object sender, EventArgs e)
        {
            bool b = isSelect();

            if (b)
            {
                ICommand pCmd = new ControlsEditingCopyCommandClass();
                pCmd.OnCreate(axMapControl1.Object);
                axMapControl1.CurrentTool = pCmd as ITool;
                pCmd.OnClick();
            }
            else
            {
                XtraMessageBox.Show("请选择要素", "提示信息", MessageBoxButtons.OK);
                return;
            }
        }