Exemplo n.º 1
0
 public void RefreshMsg(List <ChatInstance> chatLst)
 {
     if (!gameObject.activeSelf)
     {
         return;
     }
     scrollView.SetDatas(chatLst);
 }
Exemplo n.º 2
0
        private void Refresh()
        {
            bool noCardFlag = AssetsManager.Instance.bankCardsData.Count == 0;

            _addCardRoot.SetActive(noCardFlag);
            _cardScrollRoot.SetActive(!noCardFlag);
            if (!noCardFlag)
            {
                _scrollView.SetDatas(AssetsManager.Instance.bankCardsData);
            }
        }
Exemplo n.º 3
0
 private void Refresh()
 {
     _expendText.text = ContentHelper.Read(ContentHelper.ExpendText) + " " + ContentHelper.Read(ContentHelper.RMBSign) +
                        " " + AssetsManager.Instance.GetExpendTotalMoney().ToString("0.00");
     _incomeText.text = ContentHelper.Read(ContentHelper.IncomeText) + " " + ContentHelper.Read(ContentHelper.RMBSign) +
                        " " + AssetsManager.Instance.GetIncomeTotalMoney().ToString("0.00");
     _dataList.Clear();
     for (int i = AssetsManager.Instance.assetsData.transactionList.Count - 1; i >= 0; i--)
     {
         _dataList.Add(AssetsManager.Instance.assetsData.transactionList[i]);
     }
     _scrollView.SetDatas(_dataList);
 }
Exemplo n.º 4
0
 public override void OnEnter(BaseContext context)
 {
     base.OnEnter(context);
     _context = context as NewFriendsContext;
     scroll.SetDatas <int>(ChatManager.Instance.GetFriendRequests());
 }
Exemplo n.º 5
0
 public override void OnEnter(BaseContext context)
 {
     base.OnEnter(context);
     _context = context as TransferContext;
     _scrollView.SetDatas(AssetsManager.Instance.GetRecentTransList());
 }
Exemplo n.º 6
0
 private void Refresh()
 {
     _scrollView.SetDatas(AssetsManager.Instance.bankCardsData);
 }
Exemplo n.º 7
0
        private void Refresh()
        {
            List <SelectPaywayItemData> dataList = new List <SelectPaywayItemData>();

            GetBankCardData(ref dataList);
            SelectPaywayItemData balanceData = GetBalanceData();
            SelectPaywayItemData yuEBaoData  = GetYuEBaoData();
            SelectPaywayItemData antData     = GetAntData();
            SelectPaywayItemData addCardData = GetAddCardData();

            switch (_context.spendType)
            {
            case SpendType.ToSelfBankCard:
                dataList.Add(addCardData);
                break;

            case SpendType.CanUseAnt:
                if (balanceData.isCanUse)
                {
                    dataList.Add(balanceData);
                }
                if (yuEBaoData.isCanUse)
                {
                    dataList.Add(yuEBaoData);
                }
                if (antData.isCanUse)
                {
                    dataList.Add(antData);
                }
                dataList.Add(addCardData);
                if (!balanceData.isCanUse)
                {
                    dataList.Add(balanceData);
                }
                if (!yuEBaoData.isCanUse)
                {
                    dataList.Add(yuEBaoData);
                }
                if (!antData.isCanUse)
                {
                    dataList.Add(antData);
                }
                break;

            default:
                if (balanceData.isCanUse)
                {
                    dataList.Add(balanceData);
                }
                if (yuEBaoData.isCanUse)
                {
                    dataList.Add(yuEBaoData);
                }
                dataList.Add(addCardData);
                if (!balanceData.isCanUse)
                {
                    dataList.Add(balanceData);
                }
                if (!yuEBaoData.isCanUse)
                {
                    dataList.Add(yuEBaoData);
                }
                break;
            }
            _scrollView.SetDatas(dataList);
        }