Пример #1
0
    public void SetProductType()
    {
        var charge = moduleCharge.GetChargeItemListById(parentWindow.GetChargeID());

        if (charge != null && charge.Count > 0)
        {
            m_chargeItem = charge[0];
        }

        m_rewards = moduleCharge.GetSignInfos(m_chargeItem);
    }
Пример #2
0
    private void _ME(ModuleEvent <Module_Charge> e)
    {
        switch (e.moduleEvent)
        {
        case Module_Charge.NoticeChargeGetSign:
            ResponseChargeGetSign(e.msg as ScChargeDailyRebateGet);
            break;

        case Module_Charge.EventItemList:
        case Module_Charge.NoticeChargeDailyRebateUpdate:
            m_rewards = moduleCharge.GetSignInfos(m_chargeItem);
            RefreshNode();
            RefreshList();
            break;

        case Module_Charge.NoticeChargeBuySuccess:
        case Module_Charge.NoticeChargeCountChange:
            RefreshNode();
            break;
        }
    }