public override bool BeginEdit() { DF3DApplication app = DF3DApplication.Application; if (app == null || app.Current3DMapControl == null) { return(false); } System.Windows.Forms.DialogResult dialogResult = XtraMessageBox.Show(StringParser.Parse("${res:feature_alert_batch_edit}"), StringParser.Parse("${res:feature_alert_tooltip}"), System.Windows.Forms.MessageBoxButtons.YesNo); if (dialogResult == System.Windows.Forms.DialogResult.Yes) { this._clearSelection = new ClearSelectionHandle(SelectCollection.Instance().Clear); this._deleteSelection = new DeleteSelectionHandle(CommonUtils.Instance().Delete); this._updateSelection = new UpdateSelectionHandel(SelectCollection.Instance().UpdateSelection); this._InsertSelection = new InsertSelectionHandel(CommonUtils.Instance().Insert); //this._NextPage = new NextPageHandel(SelectCollection.Instance().NextResultSize); this.bNeedOperator = true; app.Current3DMapControl.PauseRendering(false); } else { this.bNeedOperator = false; } return(this.bNeedOperator); }
public override bool BeginEdit() { DF3DApplication app = DF3DApplication.Application; if (app == null || app.Current3DMapControl == null) { return(false); } this._clearSelection = new ClearSelectionHandle(SelectCollection.Instance().Clear); this._deleteSelection = new DeleteSelectionHandle(CommonUtils.Instance().Delete); this._updateSelection = new UpdateSelectionHandel(SelectCollection.Instance().UpdateSelection); this._InsertSelection = new InsertSelectionHandel(CommonUtils.Instance().Insert); //this._NextPage = new NextPageHandel(SelectCollection.Instance().NextResultSize); app.Current3DMapControl.PauseRendering(false); return(true); }