private void Button_Click_1(object sender, RoutedEventArgs e) { DialogResult = false; _dataContext.CancelEdit(); Close(); }