Minor refactoring.
This commit is contained in:
parent
cf1bc1c252
commit
30ba69eca7
3 changed files with 11 additions and 9 deletions
|
|
@ -8,6 +8,9 @@ namespace LibationWinForms.GridView
|
|||
#nullable enable
|
||||
internal static class QueryExtensions
|
||||
{
|
||||
public static IEnumerable<LibraryBook> FindChildren(this IEnumerable<LibraryBook> bookList, LibraryBook parent)
|
||||
=> bookList.Where(lb => lb.Book.SeriesLink?.Any(s => s.Series.AudibleSeriesId == parent.Book.AudibleProductId) == true);
|
||||
|
||||
public static IEnumerable<LibraryBookEntry> BookEntries(this IEnumerable<GridEntry> gridEntries)
|
||||
=> gridEntries.OfType<LibraryBookEntry>();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue