Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form formCart = new FormShoppingCart();

            formCart.Show();
            _formShoppingCart.ShowShoppingCartItems(drinks);
        }
Example #2
0
 public DynamicControls()
 {
     InitializeComponent();
     beverageRepo = new BeverageRepo();
     drinks       = beverageRepo.GetBeverages();
     GenerateControlsForDrinks(drinks);
     _formShoppingCart = new FormShoppingCart();
     shoppingCart      = ShoppingCart.GetCart();
 }