private void buttonCancel_Click(object sender, EventArgs e) { _contactViewModel.CancelChanges(); DialogResult = DialogResult.Cancel; Close(); }