Exemplo n.º 1
0
        private void btnSettings_Click(object sender, RoutedEventArgs e)
        {
            LibraryView libViewModel = new LibraryView();
            var         bvm          = DataContext as BookViewModel;

            libViewModel.Books.ToList().ForEach(elem => bvm.LoadBook(elem.Id));
        }
Exemplo n.º 2
0
        private async Task Search()
        {
            SearchResults = new List <SearchResult>();
            LibraryView vm = new LibraryView();

            foreach (var book in vm.Books)
            {
                var bk = new BookModel().OpenBook(book.Id);
                foreach (var chapter in bk.Chapters)
                {
                    SearchInChapter(chapter);
                }
            }
            lstResults.ItemsSource = SearchResults;
        }
Exemplo n.º 3
0
 private void btnSettings_Click(object sender, RoutedEventArgs e)
 {
     LibraryView libViewModel = new LibraryView();
     var bvm = DataContext as BookViewModel;
     libViewModel.Books.ToList().ForEach(elem => bvm.LoadBook(elem.Id));
 }
Exemplo n.º 4
0
 private async Task Search()
 {
     SearchResults = new List<SearchResult>();
     LibraryView vm = new LibraryView();
     foreach (var book in vm.Books)
     {
         var bk = new BookModel().OpenBook(book.Id);
         foreach (var chapter in bk.Chapters)
         {
             SearchInChapter(chapter);
         }
     }
     lstResults.ItemsSource = SearchResults;
 }