Ejemplo n.º 1
0
        /// <summary>
        /// IDisposable-compliant dispose method.
        /// </summary>
        public void Dispose()
        {
            CleanUpBooksData();
            instance = null;

            GC.SuppressFinalize(this);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// TagsQueryDataCategory constructor.
 /// </summary>
 /// <param name="booksManager">The command-pattern business-logic instance</param>
 /// <param name="tags">The list of tags to query by</param>
 public TagsQueryDataCategory(BooksManager booksManager, List <Tag> tags)
 {
     this.booksManager = booksManager;
     this.tags         = tags;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// PublishingHousesQueryDataCategory constructor.
 /// </summary>
 /// <param name="booksManager">The command-pattern business-logic instance</param>
 /// <param name="publishingHouses">The list of publishing houses to query by</param>
 public PublishingHousesQueryDataCategory(BooksManager booksManager, List <PublishingHouse> publishingHouses)
 {
     this.booksManager     = booksManager;
     this.publishingHouses = publishingHouses;
 }
 /// <summary>
 /// YearsOfPublishingQueryDataCategory constructor.
 /// </summary>
 /// <param name="booksManager">The command-pattern business-logic instance</param>
 /// <param name="yearsOfPublishing">The list of years of publishing to query by</param>
 public YearsOfPublishingQueryDataCategory(BooksManager booksManager, List <YearOfPublishing> yearsOfPublishing)
 {
     this.booksManager      = booksManager;
     this.yearsOfPublishing = yearsOfPublishing;
 }
 /// <summary>
 /// AuthorsQueryDataCategory constructor.
 /// </summary>
 /// <param name="booksManager">The command-pattern business-logic instance</param>
 /// <param name="authors">The list of authors to query by</param>
 public AuthorsQueryDataCategory(BooksManager booksManager, List <Author> authors)
 {
     this.booksManager = booksManager;
     this.authors      = authors;
 }