Ejemplo n.º 1
0
        public void Initialize(MessageProcessor messageHandler)
        {
            //ViewModel require Settings and ManualPictureCombiner
            this.SettingManager = new SettingManager();
            SettingManager.ReadSettings(Settings);

            MessageDispatcher = new MessageDispatcher();
            MessageDispatcher.MessageHandler += messageHandler;

            photoModifier         = new PhotoModifier(Settings);
            fileWriter            = new FileWriter(Settings, MessageDispatcher);
            ManualPictureCombiner = new ManualPictureCombiner(photoModifier, fileWriter, MessageDispatcher);
            FolderScanner         = new FolderScanner(MessageDispatcher);
            FolderScanner.InitVisitors(Settings);
            FolderScanner.NewPhotoGoupHandler = HandlePictureGroup;
        }
Ejemplo n.º 2
0
        public void Initialize(MessageProcessor messageHandler)
        {
            //ViewModel require Settings and ManualPictureCombiner
            this.SettingManager = new SettingManager();
            SettingManager.ReadSettings(Settings);

            MessageDispatcher = new MessageDispatcher();
            MessageDispatcher.MessageHandler += messageHandler;

            photoModifier = new PhotoModifier(Settings);
            fileWriter = new FileWriter(Settings, MessageDispatcher);
            ManualPictureCombiner = new ManualPictureCombiner(photoModifier, fileWriter, MessageDispatcher);
            FolderScanner = new FolderScanner(MessageDispatcher);
            FolderScanner.InitVisitors(Settings);
            FolderScanner.NewPhotoGoupHandler = HandlePictureGroup;
        }