Ejemplo n.º 1
0
 public ICommand Build(string[] commandArgs)
 {
     if (commandArgs.Length > 0)
     {
         switch (commandArgs[0].ToLower().Trim())
         {
         case "-findkey": {
             if (commandArgs.Length > 1)
             {
                 string         key     = commandArgs[1];
                 FindKeyCommand command = new FindKeyCommand(key);
                 return(command);
             }
         }
         break;
         }
     }
     return(null);
 }
Ejemplo n.º 2
0
 public FindKeyCommandExecutor(FindKeyCommand command, IStringSource source)
 {
     this.command = command;
     this.source  = source;
 }