Ejemplo n.º 1
0
 public override void Execute(CommandSwitchValues values)
 {
     using (var imageController = ControllerFactory.MakeImageController())
     {
         ReportGenerator generator = new ReportGenerator(Console.Out);
         generator.DisplayImages(imageController.GetAllImages());
     }
 }
        public override void Execute(CommandSwitchValues values)
        {
            string name = values.GetSwitch("-name");

            using (var imageController = ControllerFactory.MakeImageController())
            {
                ReportGenerator generator = new ReportGenerator(Console.Out);
                generator.DisplayImages(imageController.ViewImagesWithSimilarName(name));
            }
        }