示例#1
0
        public void Execute(params string[] inputParametrs)
        {
            try {
                if ((inputParametrs[0].ToString() != "") && (inputParametrs[0].ToString() != " "))
                {
                    throw new ArgumentException("Команда не принимает параметров");
                }

                CommandsInit commandsInit = new CommandsInit();
                foreach (ICommand option in commandsInit.Options)
                {
                    Console.WriteLine(option.Name + option.Description);
                }
            } catch (ArgumentException e) {
                Console.WriteLine(e.Message);
            }
        }
示例#2
0
 public Application()
 {
     commandsInit           = new CommandsInit();
     TestCommand.iterations = 100;
     TestCommand.sequence   = null;
 }