Beispiel #1
0
 public Order()
 {
     Id     = OrdersDA.getLastID() + 1;
     Date   = DateTime.Now;
     Price  = 0;
     Branch = "Joe Velasquez";
 }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public void AddItem(Product item)
 {
     OrdersDA.AddProductToDB(item);
     orderItems.Add(item);
 }