From 5cbe72863107c164c168675cbdcc0ae9baabfed8 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Tue, 7 Jun 2022 15:32:49 -0600 Subject: [PATCH] Don't add series parents to list --- Source/LibationWinForms/Dialogs/RemoveBooksDialog.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/LibationWinForms/Dialogs/RemoveBooksDialog.cs b/Source/LibationWinForms/Dialogs/RemoveBooksDialog.cs index 84e5ff51..bd6f1fc0 100644 --- a/Source/LibationWinForms/Dialogs/RemoveBooksDialog.cs +++ b/Source/LibationWinForms/Dialogs/RemoveBooksDialog.cs @@ -39,6 +39,7 @@ namespace LibationWinForms.Dialogs _dataGridView.BindingContextChanged += _dataGridView_BindingContextChanged; var orderedGridEntries = _libraryBooks + .Where(lb => lb.Book.ContentType is not ContentType.Parent) .Select(lb => new RemovableGridEntry(lb)) .OrderByDescending(ge => (DateTime)ge.GetMemberValue(nameof(ge.PurchaseDate))) .ToList();