예제 #1
0
 public Table getTable(Book book, string name)
 {
     return getTables(book).Where(x => String.Equals(x.name, name, StringComparison.OrdinalIgnoreCase)).First();
 }
예제 #2
0
 public IEnumerable<Table> getTables(Book book)
 {
     if (book == null)
     {
         return new List<Table>();
     }
     return Library.tables.Where(x => String.Equals(x.bookName, book.name, StringComparison.OrdinalIgnoreCase) && String.Equals(x.publisherName, book.publisherName, StringComparison.OrdinalIgnoreCase));
 }
 private async Task<BookImageContainer> WrapBook(Book source)
 {
     BookImageContainer result = new BookImageContainer();
     result.imageLocation = source.imageLocation;
     result.name = source.name;
     result.publisherName = source.publisherName;
     StorageFile file = Folder.GetFileAsync(source.imageLocation).AsTask().WaitAndUnwrapException();
     result.imageSource = await getImage(file);
     return result;
 }