/*------------------------------------------------------------------*/ /* THE FOLLOWING METHODS PROVIDE STATIC DATA */ public void InitializeStatic() { for (int count = 0; count < 40; count++) { VarsityItem current = new VarsityItem { ItemName = $"Food Item {count}", LineNumber = (count % 5 + 1).ToString(), MealTime = "Breakfast" }; VarsityMenu.AddItem(current); } for (int count = 0; count < 40; count++) { VarsityItem current = new VarsityItem { ItemName = $"Lunch Food Item {count}", LineNumber = (count % 5 + 1).ToString(), MealTime = "Lunch" }; VarsityMenu.AddItem(current); } for (int count = 0; count < 40; count++) { VarsityItem current = new VarsityItem { ItemName = $"Dinner Food Item {count}", LineNumber = (count % 5 + 1).ToString(), MealTime = "Dinner" }; VarsityMenu.AddItem(current); } }
public void GetDiningMenus() { /* Format the Varsity dining menus */ foreach (var item in VarsityItems) { VarsityMenu.AddItem(item); } }