Beispiel #1
0
        private void btnVatten_Click(object sender, EventArgs e)
        {
            var water = AddDrinks.AddWater();

            Payment.drinks.Add(water);
            AmountToPay();
            UpdateChange();
        }
Beispiel #2
0
        private void btnJuice_Click(object sender, EventArgs e)
        {
            var juice = AddDrinks.AddJuice();

            Payment.drinks.Add(juice);
            AmountToPay();
            UpdateChange();
        }
Beispiel #3
0
        private void btnSprite_Click(object sender, EventArgs e)
        {
            var sprite = AddDrinks.AddSprite();

            Payment.drinks.Add(sprite);
            AmountToPay();
            UpdateChange();
        }
Beispiel #4
0
        private void btnKaffe_Click(object sender, EventArgs e)
        {
            var coffee = AddDrinks.AddCoffe();

            Payment.drinks.Add(coffee);
            AmountToPay();
            UpdateChange();
        }
Beispiel #5
0
        private void btnFanta_Click(object sender, EventArgs e)
        {
            var fanta = AddDrinks.AddCola();

            Payment.drinks.Add(fanta);
            AmountToPay();
            UpdateChange();
        }