Esempio n. 1
0
        public new void Execute(FigaroContext context, string args)
        {
            args = args.Replace("\"\"", "{blank}");
            args = args.Replace("''", "{blank}");

            base.Execute(context, args);
            ValidateArgCount(3, 6);

            if (argv.Length == 3)
            {
                context.LookupStatistics(argv[0].Replace("{blank}", string.Empty),
                                         argv[1].Replace("{blank}", string.Empty),
                                         argv[2].Replace("{blank}", string.Empty), string.Empty, string.Empty, string.Empty);
            }
            if (argv.Length == 6)
            {
                context.LookupStatistics(argv[0].Replace("{blank}", string.Empty),
                                         argv[1].Replace("{blank}", string.Empty),
                                         argv[2].Replace("{blank}", string.Empty),
                                         argv[3].Replace("{blank}", string.Empty),
                                         argv[4].Replace("{blank}", string.Empty),
                                         argv[5].Replace("{blank}", string.Empty));
            }
            else
            {
                throw new ValidationException();
            }
        }