From aabc14c639cb32490f6cd9fb1b37123262cf6f6f Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Mon, 16 May 2022 12:12:34 -0600 Subject: [PATCH] Make AllItems a method --- Source/LibationWinForms/grid/ProductsGrid.cs | 4 ++-- Source/LibationWinForms/grid/SortableFilterableBindingList.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/LibationWinForms/grid/ProductsGrid.cs b/Source/LibationWinForms/grid/ProductsGrid.cs index 6ae814f3..42632f69 100644 --- a/Source/LibationWinForms/grid/ProductsGrid.cs +++ b/Source/LibationWinForms/grid/ProductsGrid.cs @@ -191,7 +191,7 @@ namespace LibationWinForms //Add absent books to grid, or update current books - var allItmes = bindingList.AllItems; + var allItmes = bindingList.AllItems(); for (var i = dbBooks.Count - 1; i >= 0; i--) { var libraryBook = dbBooks[i]; @@ -216,7 +216,7 @@ namespace LibationWinForms // note: actual deletion from db must still occur via the RemoveBook feature. deleting from audible will not trigger this var removedBooks = bindingList - .AllItems + .AllItems() .ExceptBy(dbBooks.Select(lb => lb.Book.AudibleProductId), ge => ge.AudibleProductId) .ToList(); diff --git a/Source/LibationWinForms/grid/SortableFilterableBindingList.cs b/Source/LibationWinForms/grid/SortableFilterableBindingList.cs index eaa244a3..54f98b03 100644 --- a/Source/LibationWinForms/grid/SortableFilterableBindingList.cs +++ b/Source/LibationWinForms/grid/SortableFilterableBindingList.cs @@ -58,7 +58,7 @@ namespace LibationWinForms base.Remove(entry); } - public List AllItems => Items.Concat(FilterRemoved).ToList(); + public List AllItems() => Items.Concat(FilterRemoved).ToList(); private void ApplyFilter(string filterString) {