public void AddRange(List<Command> listCommands) { listCommands.ForEach(delegate(Command cmd) { commands.Add(cmd); }); }