public async Task<AmazonBookInfo> FetchBookInfo(IWebBrowser webMain)
 {
     _webMain = webMain;
     var bookInfo = new AmazonBookInfo
     {
         //Url = webMain.Address,
         Title = await GetBookTitle(),
         Edition = await GetBookEdition(),
         Rating = await GetBookRating(),
         Review = await GetBookReview(),
         Authors = await GetBookAuthors(),
         Price = await GetBookPrice(),
         Isbn = await GetBookIsbn(),
         Publisher = await GetBookPublisher(),
         Year = await GetBookYear()
     };
     return bookInfo;
 }
        public async Task <AmazonBookInfo> FetchBookInfo(IWebBrowser webMain)
        {
            _webMain = webMain;
            var bookInfo = new AmazonBookInfo
            {
                //Url = webMain.Address,
                Title     = await GetBookTitle(),
                Edition   = await GetBookEdition(),
                Rating    = await GetBookRating(),
                Review    = await GetBookReview(),
                Authors   = await GetBookAuthors(),
                Price     = await GetBookPrice(),
                Isbn      = await GetBookIsbn(),
                Publisher = await GetBookPublisher(),
                Year      = await GetBookYear()
            };

            return(bookInfo);
        }
 protected virtual void OnBookSelected(AmazonBookInfo info)
     => RaiseEvent(new BookInfoEventArgs(BookInfoSentEvent, this, info));
 public BookInfoEventArgs(RoutedEvent routedEvent, object source, AmazonBookInfo info) : base(routedEvent, source)
 {
     Info = info;
 }
 public BookInfoEventArgs(RoutedEvent routedEvent, AmazonBookInfo info) : this(routedEvent, null, info)
 {
 }
 public BookInfoEventArgs(AmazonBookInfo info) : this(null, null, info)
 {
 }
 public BookInfoEventArgs(RoutedEvent routedEvent, object source, AmazonBookInfo info)
     : base(routedEvent, source)
 {
     Info = info;
 }
 public BookInfoEventArgs(RoutedEvent routedEvent, AmazonBookInfo info)
     : this(routedEvent, null, info)
 {
 }
 public BookInfoEventArgs(AmazonBookInfo info)
     : this(null, null, info)
 {
 }
Esempio n. 10
0
 protected virtual void OnBookSelected(AmazonBookInfo info)
 => RaiseEvent(new BookInfoEventArgs(BookInfoSentEvent, this, info));