private void Remove(object sender, RoutedEventArgs e) { if (parentWindow.RemoveDataEntity(oldObj)) { this.Close(); } }