protected sealed override bool saveData() { try { validateFields(); } catch (Exception e) { MessageBox.Show(e.Message, "Data validation error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return(false); } umd.StartUpdate(); writeFields(); umd.EndUpdate(); if (addingNew) { UmdDatabase.Instance.Add(umd); } AddingNew = false; return(true); }