Пример #1
0
        private void btnVatten_Click(object sender, EventArgs e)
        {
            var water = AddDrinks.AddWater();

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

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

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

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

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