public Order() { Id = OrdersDA.getLastID() + 1; Date = DateTime.Now; Price = 0; Branch = "Joe Velasquez"; }
private void Form1_Load(object sender, EventArgs e) { itemSizes = OrdersDA.GetAllSizes(); menuList = OrdersDA.GetMenuItems(); drinkSelectionList = OrdersDA.GetDrinkAddOns(); promoList = OrdersDA.getPromotional(); addOnList = OrdersDA.GetAddOns(); addOnRb = new CheckBox[addOnList.Count()]; saladList = OrdersDA.GetSalads(); specialsList = OrdersDA.getSpecials(); DateTime adate = DateTime.Parse("11/24/2015"); OrderNumber = OrdersDA.getLastID(); }
public void AddItem(Product item) { OrdersDA.AddProductToDB(item); orderItems.Add(item); }