static Basket CreateBasket() { var basket = new Basket(); basket.AddItemToBasket( new Product(000, "Glass Bottle", true, true, 15.99m, 25.99m, 15)); basket.AddItemToBasket( new Product(001, "Can of pop", false, false, 0.20m, 0.70m, 2500)); return(basket); }
private void btnAdd_Click(object sender, EventArgs e) { basket.AddItemToBasket(txtName.Text, (int)qualUpDwn.Value, decimal.Parse(txtPrice.Text)); //lstBasket.Items.Add(basket.BasketItemList[0]); bs.ResetBindings(false); }