コード例 #1
0
 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
ファイル: ThumbnailController.cs プロジェクト: skimur/skimur
 public ThumbnailController(IThumbnailCacheService thumbnailCacheService, 
     IContentTypeProvider contentTypeProvider)
 {
     _thumbnailCacheService = thumbnailCacheService;
     _contentTypeProvider = contentTypeProvider;
 }
コード例 #5
0
 public ThumbnailController(IThumbnailCacheService thumbnailCacheService,
                            IContentTypeProvider contentTypeProvider)
 {
     _thumbnailCacheService = thumbnailCacheService;
     _contentTypeProvider   = contentTypeProvider;
 }