public BookViewModel(Book book,
                      IThumbnailCacheService thumbnailCacheService,
                      IFileService fileService)
 {
     _id   = book.Id;
     _path = book.Path;
     Name  = Path.GetFileNameWithoutExtension(book.Path);
     _thumbnailCacheService = thumbnailCacheService;
     _fileService           = fileService;
 }
示例#2
0
 public GridSettingsViewModel(IThumbnailCacheService thumbnailCacheService,
                              IDataService dataService,
                              IEventAggregator eventAggregator,
                              ITaskSchedulerService taskSchedulerService)
 {
     GenerateCacheCommand   = new DelegateCommand(GenerateCachesExecute);
     _thumbnailCacheService = thumbnailCacheService;
     _dataService           = dataService;
     _eventAggregator       = eventAggregator;
     _taskSchedulerService  = taskSchedulerService;
 }
示例#3
0
 public CenterGridViewModel(IEventAggregator eventAggregator,
                            IDataService dataService,
                            IThumbnailCacheService thumbnailCacheService,
                            IFileService fileService)
 {
     _eventAggregator       = eventAggregator;
     _dataService           = dataService;
     _thumbnailCacheService = thumbnailCacheService;
     _fileService           = fileService;
     _eventAggregator.GetEvent <PostCachesUpdatedEvent>().Subscribe(UpdateThumbnails);
     UpdateThumbnails();
 }
示例#4
0
 public ThumbnailController(IThumbnailCacheService thumbnailCacheService, 
     IContentTypeProvider contentTypeProvider)
 {
     _thumbnailCacheService = thumbnailCacheService;
     _contentTypeProvider = contentTypeProvider;
 }
示例#5
0
 public ThumbnailController(IThumbnailCacheService thumbnailCacheService,
                            IContentTypeProvider contentTypeProvider)
 {
     _thumbnailCacheService = thumbnailCacheService;
     _contentTypeProvider   = contentTypeProvider;
 }