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() { this.ServiceFactory = new ServiceFactory(); this.repositoryMaster = new RepositoryMaster(); this.photoFileService = ServiceFactory.PhotoFileService; this.searchFolder = new SearchFolder(repositoryMaster, photoFileService); this.filter = new Filter(repositoryMaster); this.addKeyword = new AddKeyword(repositoryMaster); this.deleteKeyword = new DeleteKeyword(repositoryMaster); this.toggleIsFavorite = new ToggleIsFavorite(repositoryMaster); this.addAlbum = new AddAlbum(repositoryMaster); this.searchAlbum = new SearchAlbum(repositoryMaster); this.sortDateAscending = new SortDateAscending(); this.sortDateDescending = new SortDateDescending(); this.getAllAlbums = new GetAllAlbums(repositoryMaster); }
public App() { InitializeComponent(); MainPage = new SearchAlbum(); }