Ejemplo n.º 1
0
        public void TestImageCombination()
        {
            StringWriter outputWriter = new StringWriter();
            StringWriter errorWriter  = new StringWriter();

            ArtworkCombiner combiner = new ArtworkCombiner();

            combiner.Combine(".", outputWriter, errorWriter);
        }
Ejemplo n.º 2
0
        public override bool Execute()
        {
            // TODO: I18N
            this.Log.LogMessage("Combining artwork...");

            using (StringWriter outputWriter = new StringWriter()) {
                using (StringWriter errorWriter = new StringWriter()) {
                    ArtworkCombiner combiner = new ArtworkCombiner();
                    combiner.Logger = new ExecutionLogger(this);
                    combiner.Combine(this.Directory.GetMetadata("FullPath"), outputWriter, errorWriter);
                    String outputLog = outputWriter.ToString();
                    String errorLog  = errorWriter.ToString();
                    this.Log.LogMessage(outputLog);
                    this.Log.LogMessage(errorLog);
                }
            }

            return(true);
        }