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

            cmd.OnCreate(m_MapControl.Object);
            cmd.OnClick();
        }
Esempio n. 2
0
 /// <summary>
 /// 保存编辑内容
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void m_savetool_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (pEngineEditor.EditState == esriEngineEditState.esriEngineStateEditing)
     {
         ICommand savecommand = new ControlsEditingSaveCommandClass();
         savecommand.OnCreate(m_mapControl.Object);
         m_mapControl.CurrentTool = savecommand as ITool;
         savecommand.OnClick();
     }
 }
Esempio n. 3
0
 private void Save_Edit_Click(object sender, EventArgs e)
 {
     ICommand command = new ControlsEditingSaveCommandClass();
     command.OnCreate(axMapControl1.Object);
     command.OnClick();
 }