public void removePromo(Promo promo) { this.itemPromo.Remove(promo); this.callback.removePromoSucceed(); capacity = 1; calculateSubTotal(); }
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); } }