Exemplo n.º 1
0
        private void generateListVoucher()
        {
            Model.Voucher awalTahun  = new Model.Voucher(title: "Promo Awal Tahun Diskon 25%", discInPercent: 25);
            Model.Voucher tebusMurah = new Model.Voucher(title: "Promo Tebus Murah Diskon 30% atau max. 30.000", discInPercent: 30);
            Model.Voucher promoNatal = new Model.Voucher(title: "Promo Natal Potongan 10000", disc: 10000);

            voucherController.addItem(awalTahun);
            voucherController.addItem(tebusMurah);
            voucherController.addItem(promoNatal);

            DaftarVoucher.Items.Refresh();
        }
        private void generateListVoucher()
        {
            Model.Voucher seninspesial = new Model.Voucher(title: "Promo Senin Spesial 25%", discInPercent: 25);
            Model.Voucher penggunabaru = new Model.Voucher(title: "Promo Pengguna Baru 50%", discInPercent: 50);
            Model.Voucher promoNatal   = new Model.Voucher(title: "Promo Natal Potongan 10000", disc: 10000);

            voucherController.addItem(seninspesial);
            voucherController.addItem(penggunabaru);
            voucherController.addItem(promoNatal);

            DaftarVoucher.Items.Refresh();
        }