Has PDFs => Has PDF

This commit is contained in:
Robert McRackan 2019-11-19 13:34:38 -05:00
parent b0139c47be
commit a1ba324166
2 changed files with 3 additions and 3 deletions

View File

@ -206,7 +206,7 @@ namespace DataLayer
#region supplements #region supplements
private HashSet<Supplement> _supplements; private HashSet<Supplement> _supplements;
public IEnumerable<Supplement> Supplements => _supplements?.ToList(); public IEnumerable<Supplement> Supplements => _supplements?.ToList();
public bool HasPdfs => Supplements.Any(); public bool HasPdf => Supplements.Any();
public void AddSupplementDownloadUrl(string url) public void AddSupplementDownloadUrl(string url)
{ {

View File

@ -146,8 +146,8 @@ namespace LibationWinForm
get get
{ {
var details = new List<string>(); var details = new List<string>();
if (book.HasPdfs) if (book.HasPdf)
details.Add("Has PDFs"); details.Add("Has PDF");
if (book.IsAbridged) if (book.IsAbridged)
details.Add("Abridged"); details.Add("Abridged");
if (book.DatePublished.HasValue) if (book.DatePublished.HasValue)