コード例 #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;
 }
コード例 #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();
        }
コード例 #3
0
 public SetupViewModel(ScreensaverConfiguration configurationToUse, ApplicationController controllerToUse)
 {
     this.Configuration = configurationToUse;
     this.controller    = controllerToUse;
 }
コード例 #4
0
 public ImageProcessor(string imagePathToUse, ScreensaverConfiguration configurationToUse)
 {
     this.imagePath     = imagePathToUse;
     this.configuration = configurationToUse;
 }