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); }
public FindKeyCommandExecutor(FindKeyCommand command, IStringSource source) { this.command = command; this.source = source; }