//string dayOfWeek; public MealDay() { plannedMeals = new PlannedMeal[3]; for (int i = 0; i < 3; i++) { plannedMeals[i] = new PlannedMeal(); } //this.dayOfWeek = System.DateTime.Now.DayOfWeek.ToString(); }
public MealDay(PlannedMeal p1, PlannedMeal p2, PlannedMeal p3) { //if ((p1.DayOfWeek == p2.DayOfWeek) && (p2.DayOfWeek == p3.DayOfWeek)) //{ // dayOfWeek = p1.DayOfWeek; //} //else { // dayOfWeek = "Incorrect Dates"; //} this.plannedMeals = new PlannedMeal[3] { p1, p2, p3 }; }