Пример #1
0
        //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();
        }
Пример #2
0
 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
     };
 }