示例#1
0
 public PhotoFrameApplication(IAlbumRepository albumRepository, IPhotoRepository photoRepository, IPhotoFileService photoFileService)
 {
     this.createAlbum     = new CreateAlbum(albumRepository);
     this.searchAlbum     = new SearchAlbum(photoRepository);
     this.searchDirectory = new SearchDirectory(photoRepository, photoFileService);
     this.toggleFavorite  = new ToggleFavorite(photoRepository);
     this.changeAlbum     = new ChangeAlbum(albumRepository, photoRepository);
 }
 public PhotoFrameApplication(IKeywordRepository keywordRepository, IPhotoRepository photoRepository, IPhotoFileService photoFileService)
 {
     _registKeyword  = new RegistKeyword(keywordRepository);
     _detailSearch   = new DetailSearch();
     _searchFolder   = new SearchFolder(photoRepository, photoFileService);
     _toggleFavorite = new ToggleFavorite(photoRepository);
     _sortList       = new SortList();
     _changeKeyword  = new ChangeKeyword(keywordRepository, photoRepository);
     _getKeywordList = new GetKeywordList(keywordRepository);
 }
示例#3
0
 private void RaiseToggleFavorite()
 {
     ToggleFavorite?.Invoke(this, EventArgs.Empty);
 }