public static void AddParameterToSchedule(ViewSchedule schedule, params Parameter[] parameters) { foreach (var p in parameters) { if (!schedule.HasParameter(p)) { AddParameterToSchedule(schedule, p); } } }