Exemplo n.º 1
0
        private void OnExecute()
        {
            //TODO DI Magic
            IIFolorService         ifolorService = new IFolorService();
            IImageGeneratorService imageService  = new ImageGeneratorService();

            var projectFilePath = Path.Join(ProjectFilePath, "Project.ipp");

            if (!File.Exists(projectFilePath))
            {
                Console.WriteLine($"Project.ipp file not found: {projectFilePath}");
                //TODO return error code
                return;
            }

            //TODO Log the progress
            var project = ifolorService.LoadPhotobook(projectFilePath);

            imageService.RenderAllPages(project, ProjectFilePath, ExportFolderPath);
        }
Exemplo n.º 2
0
 public APIReaderSplashImageController()
 {
     splashBaseService     = new SplashBaseService();
     imageGeneratorService = new ImageGeneratorService();
 }