Esempio n. 1
0
        private void OpenBook(LibraryItemViewModel book)
        {
            BookViewModel  bookViewModel     = new BookViewModel(book.Id);
            IWindowContext bookWindowContext = windowManager.CreateWindow(bookViewModel);

            bookWindowContext.ShowDialog();
        }
Esempio n. 2
0
 public void RemoveBookFromLibrary(LibraryItemViewModel libraryItemViewModel)
 {
     string bookCoverImageFilePath = GetBookCoverImageFilePath(libraryItemViewModel.Id);
     if (File.Exists(bookCoverImageFilePath))
         File.Delete(bookCoverImageFilePath);
     settings.Books.Remove(settings.Books.First(book => book.Id == libraryItemViewModel.Id));
     applicationContext.SaveSettings();
 }
 private void RemoveBookFromLibrary(LibraryItemViewModel book)
 {
     libraryModel.RemoveBookFromLibrary(book);
     RefreshLibrary();
 }
 private void OpenBook(LibraryItemViewModel book)
 {
     //return;
     //BookViewModel bookViewModel = new BookViewModel(book.Id);
     //IWindowContext bookWindowContext = windowManager.CreateWindow(bookViewModel);
     //bookWindowContext.Show();
 }
Esempio n. 5
0
 private void RemoveBookFromLibrary(LibraryItemViewModel book)
 {
     libraryModel.RemoveBookFromLibrary(book);
     RefreshLibrary();
 }
Esempio n. 6
0
 private void OpenBook(LibraryItemViewModel book)
 {
     BookViewModel bookViewModel = new BookViewModel(book.Id);
     IWindowContext bookWindowContext = windowManager.CreateWindow(bookViewModel);
     bookWindowContext.ShowDialog();
 }