Exemplo n.º 1
0
        public virtual bool Execute(InterpreterItem item, Keys modifiers)
        {
            Command command = GetCommandByName(item.CommandName);

            if (command != null)
            {
                string parameters = BuildParameters(item.Text, item.CommandTokens);
                command.Execute(parameters, modifiers);
                return(true);
            }
            return(false);
        }
Exemplo n.º 2
0
 public virtual Command GetCommand(InterpreterItem item)
 {
     return(GetCommandByName(item.CommandName));
 }