Пример #1
0
 private void AddBook(string bookfile)
 {
     var contentReader = new EpubContentReader(bookfile, new Settings(), new DirectoryHelper());
     var title = contentReader.GetTitle();
     var creator = contentReader.GetCreator();
     var book = new Book()
     {
         File = bookfile,
         Title = title,
         Creator = creator
     };
     db.Add(book);
 }
Пример #2
0
        private void AddBook(string bookfile)
        {
            var contentReader = new EpubContentReader(bookfile, new Settings(), new DirectoryHelper());
            var title         = contentReader.GetTitle();
            var creator       = contentReader.GetCreator();
            var book          = new Book()
            {
                File    = bookfile,
                Title   = title,
                Creator = creator
            };

            db.Add(book);
        }