Пример #1
0
 public void removePromo(Promo promo)
 {
     this.itemPromo.Remove(promo);
     this.callback.removePromoSucceed();
     capacity = 1;
     calculateSubTotal();
 }
Пример #2
0
        public void addPromo(Promo promo)
        {
            if (capacity == 1)
            {
                this.itemPromo.Add(promo);
                this.callback.addPromoSucceed();
                calculateSubTotal();
            }

            else
            {
                MessageBox.Show("Oopss! Kamu hanya dapat menggunakan salah satu voucher aja", "Ok", MessageBoxButton.OK);
            }
        }