示例#1
0
        /// <summary>
        /// IDisposable-compliant dispose method.
        /// </summary>
        public void Dispose()
        {
            CleanUpBooksData();
            instance = null;

            GC.SuppressFinalize(this);
        }
示例#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;
 }
示例#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;
 }