Beispiel #1
0
 public SlideShow(List <Photo> photolist, KeywordRepository keywordRepository, PhotoRepository photoRepository, PhotoFileService photoFileService)
 {
     this.originalphotos      = photolist; //メイン画面から配列の受け取り
     this.sskeywordRepository = new KeywordRepository();
     this.ssphotoRepository   = new PhotoRepository();
     this.ssphotoFileService  = new PhotoFileService();
     this.application         = new PhotoFrameApplication(keywordRepository, photoRepository, photoFileService);
 }
        static void Main()
        {
            KeywordRepository keyWordRepository = new KeywordRepository();
            PhotoRepository   photoRepository   = new PhotoRepository();
            PhotoFileService  photoFileService  = new PhotoFileService();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1(keyWordRepository, photoRepository, photoFileService));
        }
Beispiel #3
0
 public Form1(KeywordRepository in_keywordRepository, PhotoRepository in_photoRepository, PhotoFileService in_photoFileService)
 {
     InitializeComponent();
     this.keywordRepository = in_keywordRepository;
     this.photoRepository   = in_photoRepository;
     this.photoFileService  = in_photoFileService;
     addKeyword             = new AddKeyword(keywordRepository);
     changeFavorite         = new ChangeFavorite(photoRepository);
     changeKeyword          = new ChangeKeyword(keywordRepository, photoRepository);
     createPhotoList        = new CreatePhotoList(photoRepository, photoFileService);
     searchDate             = new SearchDate();
     searchFavorite         = new SearchFavorite();
     searchKeyword          = new SearchKeyword();
     sortDate = new SortDate();
     End_DateTimePicker.MaxDate = DateTime.Today;
 }
Beispiel #4
0
        private readonly SortSlideList sortSlideList;       //変更済み

        public PhotoFrameApplication(KeywordRepository keywordRepository, PhotoRepository photoRepository, PhotoFileService photoFileService)
        {
            this.createPhotoList = new CreatePhotoList(photoRepository, photoFileService); //済み
            this.addKeyword      = new AddKeyword(keywordRepository);                      //済み
            this.changeKeyword   = new ChangeKeyword(keywordRepository, photoRepository);  //済み
            this.changeFavorite  = new ChangeFavorite(photoRepository);                    //済み
            this.searchKeyword   = new SearchKeyword();                                    //済み
            this.searchFavorite  = new SearchFavorite();                                   //済み
            this.searchDate      = new SearchDate();                                       //済み
            this.sortDate        = new SortDate();                                         //済み
            this.sortSlideList   = new SortSlideList();                                    //済み
        }
 public CreatePhotoList(PhotoRepository in_photoRepository, PhotoFileService in_photoFileService)
 {
     this.photoRepository  = in_photoRepository;
     this.photoFileService = in_photoFileService;
 }