public void AddDayToDayTemps(DayTemp day) { switch (day.WeekDay) { case DayOfWeek.Monday: dayTemps[0] = day; break; case DayOfWeek.Tuesday: dayTemps[1] = day; break; case DayOfWeek.Wednesday: dayTemps[2] = day; break; case DayOfWeek.Thursday: dayTemps[3] = day; break; case DayOfWeek.Friday: dayTemps[4] = day; break; case DayOfWeek.Saturday: dayTemps[5] = day; break; case DayOfWeek.Sunday: dayTemps[6] = day; break; } }
public void AddDayToDayTempsOfWeek(DayTemp day, int index) { weekOverviews[index].AddDayToDayTemps(day); }