public PhotoProcessor(PhotoPathHelper pathHelper, IPhotoOptimizer photoOptimizer, IRawConverter rawConverter, IExifReader exifReader, IQualitySearcher qualitySearcher, ProcessingTarget sourceTarget, ProcessingTarget printTarget, ProcessingTarget xsTarget, ProcessingTarget smTarget, ProcessingTarget mdTarget, ProcessingTarget lgTarget, bool quiet) { _quiet = quiet; _pathHelper = pathHelper; _optimizer = photoOptimizer; _rawConverter = rawConverter; _exifReader = exifReader; _qualitySearcher = qualitySearcher; SourceTarget = sourceTarget; PrintTarget = printTarget; XsTarget = xsTarget; SmTarget = smTarget; MdTarget = mdTarget; LgTarget = lgTarget; }
public Program(SizePhotoOptions opts) { _opts = opts; _pathHelper = _opts.GetPathHelper(); _category = new CategoryInfo { Name = _opts.CategoryName, Year = _opts.Year, IsPrivate = _opts.IsPrivate }; if(_opts.InsertMode) { _writer = new SqlInsertWriter(_opts.Outfile); } else if(_opts.UpdateMode) { _writer = new SqlUpdateWriter(_opts.Outfile); } else { _writer = new NoopWriter(); } }
public FastReviewPhotoProcessor(PhotoPathHelper pathHelper, IRawConverter rawConverter) { _pathHelper = pathHelper; _rawConverter = rawConverter; }