Exemplo n.º 1
0
        public async Task <IBook> GetBook(IRandomAccessStream stream, string filename)
        {
            var book = new BookCompress();
            await book.LoadAsync(System.IO.WindowsRuntimeStreamExtensions.AsStream(stream), false, false);//ToDo:Config Support!

            return(book);
        }
Exemplo n.º 2
0
        public async Task <IBook> GetBook(IStorageFile file)
        {
            var book = new BookCompress();
            await book.LoadAsync(System.IO.WindowsRuntimeStreamExtensions.AsStream(await file.OpenReadAsync()), false, false);//ToDo:Config Support!

            return(book);
        }