protected virtual void OkButtonHandler(object sender, EventArgs e)
{
try
{
_panelInfo.ApplyChangesToBusinessObject();
ITransactionCommitter committer = CreateSaveTransaction();
committer.CommitTransaction();
DialogResult = Base.DialogResult.OK;
if (_postObjectEditAction != null)
{
_postObjectEditAction(this._bo, false);
}
_panelInfo.BusinessObject = null;
SafeCloseForm();
}
catch (Exception ex)
{
log.Error(ExceptionUtilities.GetExceptionString(ex, 0, true));
GlobalRegistry.UIExceptionNotifier.Notify(ex,
"There was a problem saving for the following reason(s):",
"Saving Problem");
}
}