diff --git a/Source/LibationWinForms/GridView/SeriesEntry.cs b/Source/LibationWinForms/GridView/SeriesEntry.cs index 781695f0..fd8411b8 100644 --- a/Source/LibationWinForms/GridView/SeriesEntry.cs +++ b/Source/LibationWinForms/GridView/SeriesEntry.cs @@ -9,19 +9,18 @@ namespace LibationWinForms.GridView /// The View Model for a LibraryBook that is ContentType.Parent public class SeriesEntry : GridEntry { - public List Children { get; } = new(); + public List Children { get; } public override DateTime DateAdded => Children.Max(c => c.DateAdded); public override string DisplayTags { get; } = string.Empty; public override LiberateButtonStatus Liberate { get; } - private SeriesEntry(LibraryBook parent) + private SeriesEntry() { - LibraryBook = parent; Liberate = new LiberateButtonStatus { IsSeries = true }; SeriesIndex = -1; } - public SeriesEntry(LibraryBook parent, IEnumerable children) : this(parent) + public SeriesEntry(LibraryBook parent, IEnumerable children) : this() { Children = children .Select(c => new LibraryBookEntry(c) { Parent = this }) @@ -32,7 +31,7 @@ namespace LibationWinForms.GridView LoadCover(); } - public SeriesEntry(LibraryBook parent, LibraryBook child) : this(parent) + public SeriesEntry(LibraryBook parent, LibraryBook child) : this() { Children = new() { new LibraryBookEntry(child) { Parent = this } };