Esempio n. 1
0
        public override void Execute(CommandSwitchValues values)
        {
            int id = values.GetSwitchAsInt("-id");

            using (var imageController = ControllerFactory.MakeImageController())
            {
                ReportGenerator generator = new ReportGenerator(Console.Out);
                generator.DisplayImage(imageController.GetImagebyId(id));
            }
        }