}/*public BeverageSelectionForm(Beverage a_bev) : this()*/ /// <summary> /// A generic method applied to all beverage buttons on the form. /// Once clicked, queries the database for the selected beverage /// and closes the form. /// </summary> /// <remarks> /// NAME: BtnSelection_Click /// AUTHOR: Ryan Osgood /// DATE: 8/17/2019 /// </remarks> /// <param name="sender">The button that triggered this event.</param> /// <param name="e">The EventArgs associated with this event.</param> public void BtnSelection_Click(object sender, EventArgs e) { Button selection = sender as Button; m_beverage.RetrieveBevFromDb((string)selection.Tag); Close(); }/*public void BtnSelection_Click(object sender, EventArgs e)*/
}/*public void UpdateKidsMealSide(string a_newSideIdentifier)*/ /// <summary> /// Updates the kids meal with a new beverage, query the database to find the desired item. /// </summary> /// <remarks> /// NAME: UpdateKidsMealBeverage /// AUTHOR: Ryan Osgood /// DATE: 8/15/2019 /// </remarks> /// <param name="a_newBevIdentifier">The string presentation of the desired beverage.</param> public void UpdateKidsMealBeverage(string a_newBevIdentifier) { RemoveBeverage(); Beverage newBev = new Beverage(); newBev.RetrieveBevFromDb(a_newBevIdentifier); AddBeverageToMeal(newBev); }/*public void UpdateKidsMealBeverage(string a_newBevIdentifier)*/
}/*private void BtnSideSelection_Click(object sender, EventArgs e)*/ /// <summary> /// This event is raised whenever the user selects any of the beverage buttons. /// The database is queried using the button's respective tag and the item is added to the check. /// </summary> /// <remarks> /// NAME: BtnBeverageSelection_Click /// AUTHOR: Ryan Osgood /// DATE: 8/13/2019 /// </remarks> /// <param name="sender">The button that raised the event.</param> /// <param name="e">The EventArgs of the event.</param> private void BtnBeverageSelection_Click(object sender, EventArgs e) { Button bevButton = sender as Button; Beverage beverage = new Beverage(); beverage.RetrieveBevFromDb((string)bevButton.Tag); m_customerChecks[m_currentlySelectedTab].CreateNewMealOrAddBeverageToMeal(beverage); UpdateDisplay(); }/*private void BtnBeverageSelection_Click(object sender, EventArgs e)*/
}/*public KidsMeal()*/ /// <summary> /// Generates the default kids meal, which includes a plain cheeseburger, a regular fry /// and a kids sized drink. /// </summary> /// <remarks> /// NAME: GenerateDefaultKidsMeal /// AUTHOR: Ryan Osgood /// DATE: 8/15/2019 /// </remarks> private void GenerateDefaultKidsMeal() { Side kidsSide = new Side(); kidsSide.RetrieveSideFromDb(m_regularFry); AddSideToMeal(kidsSide); Beverage kidsBev = new Beverage(); kidsBev.RetrieveBevFromDb(m_kidsSoda); AddBeverageToMeal(kidsBev); }/*private void GenerateDefaultKidsMeal()*/