public void ConvertAndLoad(EBook book)
        {
            Console.WriteLine($"The book \"{book.Title}\" was converted to AZW format successfully.");

            EBook      = book;
            EBook.File = book.File + "_converted.azw";

            _eBookReader.Load(EBook);
        }
Example #2
0
        public static void Run()
        {
            EBook book = new EBook("The beach", "Alex Garland", "thebeach4541166.mobi");

            EBookReader bookReader = new EBookReader();

            bookReader.Load(book);
            bookReader.Read();

            EBookReaderProxy proxy = new EBookReaderProxy();

            proxy.Load(book);
            proxy.Read();
            proxy.ConvertAndLoad(book);
            proxy.Read();
        }
        public void Load(EBook book)
        {
            EBook = book;

            _eBookReader.Load(EBook);
        }
        public void Load(EBook book)
        {
            Console.WriteLine($"The file \"{book.File}\" was loaded to the eBook reader.");

            EBook = book;
        }