public BookInfoPageViewModel(
            IBookRepository bookService,
            DownloadController downloadController,
            IEventAggregator eventAggregator,
            IBookmarkRepository bookmarkRepository,
            INavigationService navigationService,
            SharingDataModel sharingDataModel,
            IBusyOverlayManager busyOverlay,
            ICatalogRepository catalogRepository,
            IAcquisitionServiceFactory acquisitionServiceFactory,
            INotificationsService notificationsService,
            CatalogController catalogController,
            IDownloadsContainer container,
            IBookDownloadsRepository bookDownloadsRepository)
        {
            SharingDataModel           = sharingDataModel;
            _bookService               = bookService;
            _downloadController        = downloadController;
            _bookmarkRepository        = bookmarkRepository;
            _navigationService         = navigationService;
            _busyOverlay               = busyOverlay;
            _catalogRepository         = catalogRepository;
            _acquisitionServiceFactory = acquisitionServiceFactory;
            _notificationsService      = notificationsService;
            _catalogController         = catalogController;
            _container = container;
            _bookDownloadsRepository = bookDownloadsRepository;

            eventAggregator.Subscribe(this);

            _busyOverlay.Content  = UIStrings.BookInfoPage_Loading;
            _busyOverlay.Closable = true;
        }
예제 #2
0
 public ReadPageViewModel(
     INavigationService navigationService,
     ITileManager tileManager,
     IBookRepository bookRepository,
     SharingDataModel sharingDataModel,
     IBusyOverlayManager busyOverlay)
 {
     SharingDataModel   = sharingDataModel;
     _navigationService = navigationService;
     _tileManager       = tileManager;
     _bookRepository    = bookRepository;
     _busyOverlay       = busyOverlay;
 }
예제 #3
0
 public ReadPageViewModel(
     INavigationService navigationService,
     ITileManager tileManager, 
     IBookRepository bookRepository,
     SharingDataModel sharingDataModel,
     IBusyOverlayManager busyOverlay)
 {
     SharingDataModel = sharingDataModel;
     _navigationService = navigationService;
     _tileManager = tileManager;
     _bookRepository = bookRepository;
     _busyOverlay = busyOverlay;
 }