}/*public void ClearMembersForReinitialization()*/

        /// <summary>
        /// Using the meals within the CustomerCheck, generate their respective
        /// MealViews and add them to the MealView list.
        /// </summary>
        /// <remarks>
        /// NAME: RefreshMealViews
        /// AUTHOR: Ryan Osgood
        /// DATE: 8/16/2019
        /// </remarks>
        public void RefreshMealViews()
        {
            for (int i = 0; i < m_customerCheck.NumberOfMeals(); i++)
            {
                Meal meal = new Meal();
                meal = m_customerCheck.GetMealAtIndex(i);

                MealView mealView = new MealView(meal);
                m_customerMealViews.Add(mealView);
            }
        }/*public void RefreshMealViews()*/
예제 #2
0
        }/*private void BtnSendOrdersOnTill_Click(object sender, EventArgs e)*/

        /// <summary>
        /// Flag all the items on the current tab as sent.
        /// </summary>
        /// <remarks>
        /// NAME: FlagMealsOnTillAsSent
        /// AUTHOR: Ryan Osgood
        /// DATE: 8/13/2019
        /// </remarks>
        private void FlagMealsOnTillAsSent()
        {
            CustomerCheck currentlySelected = m_customerChecks[m_currentlySelectedTab];

            for (int i = 0; i < currentlySelected.NumberOfMeals(); i++)
            {
                Meal mealOnTill = currentlySelected.GetMealAtIndex(i);
                mealOnTill.SentFlag = true;
            }
        }/*private void FlagMealsOnTillAsSent()*/