private void Open(Books.IBook book) { if (book is Books.IBookFixed) { Binding?.Initialize((Books.IBookFixed)book, this.flipView); } }
public static async Task SaveImageAsync(Books.IBook book) { if (book is Books.IBookFixed && (book as Books.IBookFixed).PageCount > 0) { if (await GetImageFileAsync(book.ID) == null) { await(book as Books.IBookFixed).GetPage(0).SaveImageAsync(await CreateImageFileAsync(book.ID), 300); } } }