示例#1
0
        public override void Execute(CommandSwitchValues values)
        {
            int id = values.GetSwitchAsInt("-id");

            using (var scriptController = ControllerFactory.MakeEventScriptController())
            {
                ReportGenerator generator = new ReportGenerator(Console.Out);
                generator.DisplayScript(scriptController.GetScriptbyId(id));
            }
        }