예제 #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);
 }
예제 #2
0
        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);
        }
예제 #3
0
        public App()
        {
            InitializeComponent();

            MainPage = new SearchAlbum();
        }