// Update form data row by control values.
updateAllData();
// If form can create new entity then preparing next form for
// "save and add new" feature.
IForm nextForm = null;
if (sender == this.btnSaveAndAdd
&& this.form instanceof IAddFormProvider)
nextForm = ((IAddFormProvider) this.form)
.getAddForm(this.dataRow);