}/*public void DeleteMealAtIndex(int a_index)*/ /// <summary> /// Iterates through the meal list and deletes any meals that do not have a /// entree, side and beverage. /// </summary> /// <remarks> /// NAME: ClearEmptyMeals /// AUTHOR: Ryan Osgood /// DATE: 8/14/2019 /// </remarks> public void ClearEmptyMeals() { for (int i = 0; i < m_customerOrders.Count; i++) { Meal target = GetMealAtIndex(i); if (!target.HasEntree() && !target.HasSide() && !target.HasBeverage()) { m_customerOrders.Remove(target); } } }/*public void ClearEmptyMeals()*/
}/*public EntreeView GetEntreeForDisplay()*/ /// <summary> /// Firstly, checks to see if the meal passed into this MealView has a Side. Depending on /// this, perform an action. /// </summary> /// <remarks> /// NAME: GetSideForDisplay /// AUTHOR: Ryan Osgood /// DATE: 8/15/2019 /// </remarks> /// <returns> /// If the Meal has a Side, return a new SideView with the meal's Side passed into it. Else, /// return a new, empty SideView. /// </returns> public SideView GetSideForDisplay() { return(m_customerMeal.HasSide() ? new SideView(m_customerMeal.GetSide()) : new SideView(new Side())); }/*public SideView GetSideForDisplay()*/