Exemplo n.º 1
0
        public override void ReceiveOriginalParts(GUIListPartBS originalParts)
        {
            UI_SaleBonusCheckListItem ui_SaleBonusCheckListItem = originalParts as UI_SaleBonusCheckListItem;

            if (null != ui_SaleBonusCheckListItem)
            {
                this.getSaleBonus     = ui_SaleBonusCheckListItem.getSaleBonus;
                this.getBonusAssetNum = ui_SaleBonusCheckListItem.getBonusAssetNum;
            }
        }
Exemplo n.º 2
0
        public void Initialize(SaleBonus bonus)
        {
            this.saleBonus = bonus;
            UI_SaleBonusCheckListItem ui_SaleBonusCheckListItem = this.listParts as UI_SaleBonusCheckListItem;

            if (null != ui_SaleBonusCheckListItem)
            {
                ui_SaleBonusCheckListItem.SetFuncSaleBonusAsset(new Func <int, GameWebAPI.ResponseAssetSalesBonusMaster.SalesBonus>(this.GetSalesBonus));
                ui_SaleBonusCheckListItem.SetFuncBonusAssetNum(new Func <int, int>(this.GetBonusAssetNum));
            }
            base.InitializeView(2);
            if (this.saleBonus != null)
            {
                base.CreateList(this.saleBonus.Count());
            }
        }