/// <summary> /// /// </summary> /// <param name="newComicBook"></param> /// <returns> /// true if comic book doesn't exist, false otherwise /// </returns> public bool AddComicBook(UserComicBook newComicBook) { if (!ComicBookExists(newComicBook.GetArchivePath())) { comicBook.Add(newComicBook); Count++; return(true); } else { return(false); } }
public static UserComicBook MorphToUserComicBook(ComicBook cb) { UserComicBook returnCb = new UserComicBook(); returnCb.SetArchivePath(cb.GetArchivePath()); returnCb.ComicAuthors = cb.ComicAuthors; returnCb.ComicDateAdded = cb.ComicDateAdded; returnCb.ComicDateReleased = cb.ComicDateReleased; returnCb.ComicGenres = cb.ComicGenres; returnCb.ComicIssue = cb.ComicIssue; returnCb.ComicSubTitle = cb.ComicSubTitle; returnCb.ComicSynopsis = cb.ComicSynopsis; returnCb.ComicTitle = cb.ComicTitle; returnCb.ViewCount = cb.ViewCount; returnCb.Override_SetPageCount(cb.PageCount); returnCb.Publisher = cb.Publisher; return(returnCb); }