Exemple #1
0
 public CollagePresenter(ApplicationController controllerToUse, ScreensaverConfiguration configurationToUse)
 {
     this.random           = new Random();
     this.views            = new List <ICollageView>();
     this.imageQueue       = new ConcurrentQueue <ImageDisplayUserControl>();
     this.controller       = controllerToUse;
     this.configuration    = configurationToUse;
     this.photoRepository  = this.MakePhotoRepository();
     this.currentViewIndex = 0;
 }
Exemple #2
0
        public ApplicationController(Application applicationToUse)
        {
            this.application = applicationToUse;

            string localDataDirectory = Path.Combine(
                Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData),
                @"DigitalLagniappe/Screensavers/PhotoCollage");

            this.logger = new TextLogger(localDataDirectory);

            this.configurationRepository = new FileSystemConfigurationRepository(localDataDirectory);
            this.configuration           = configurationRepository.Load();
        }
 public SetupViewModel(ScreensaverConfiguration configurationToUse, ApplicationController controllerToUse)
 {
     this.Configuration = configurationToUse;
     this.controller    = controllerToUse;
 }
Exemple #4
0
 public ImageProcessor(string imagePathToUse, ScreensaverConfiguration configurationToUse)
 {
     this.imagePath     = imagePathToUse;
     this.configuration = configurationToUse;
 }