public void SetCommand(string commandName) {
     selectedCommand = CommandList[commandName];
     selectedCommand.Parameters.Clear();
 }
 public void AddCommand(CommandBase command) {
     CommandList.Add(command.Name, command);
 }
 public void RemoveCommand(CommandBase command) {
     if (commandList != null) {
         commandList.Remove(command.Name);
     }
 }