partial void OnClickActionButton(Foundation.NSObject sender) { UIErrorHelper.CheckedExec(delegate() { if (ActionButton.Title == VMIdentityConstants.EDIT) { SetUIToolsEditability(); ActionButton.Title = VMIdentityConstants.UPDATE; } else if (UIErrorHelper.ConfirmOperation(VMIdentityConstants.CONFIRM_MSG) == true) { DoValidateControls(); FillDTOWithUIControls(); this.Close(); NSApplication.SharedApplication.StopModalWithCode(VMIdentityConstants.DIALOGOK); } }); }
partial void OnActionButton(Foundation.NSObject sender) { if (ActionButton.Title == VMIdentityConstants.EDIT) { ActionButton.Title = VMIdentityConstants.UPDATE; SetEditableFields(); } else if (UIErrorHelper.ConfirmOperation(VMIdentityConstants.CONFIRM_MSG) == true) { UIErrorHelper.CheckedExec(delegate() { DoValidateControls(); UpdateObjectClassDTOWithUIValues(); this.Close(); NSApplication.SharedApplication.StopModalWithCode(1); }); } }