private void FrmBaseRegister_FormClosed(object sender, FormClosedEventArgs e) { if (DialogResult == DialogResult.Cancel) { entityManager.RollBackEdit(entityManager.Entity as EntityPersistence); } }