public void RefreshMsg(List <ChatInstance> chatLst) { if (!gameObject.activeSelf) { return; } scrollView.SetDatas(chatLst); }
private void Refresh() { bool noCardFlag = AssetsManager.Instance.bankCardsData.Count == 0; _addCardRoot.SetActive(noCardFlag); _cardScrollRoot.SetActive(!noCardFlag); if (!noCardFlag) { _scrollView.SetDatas(AssetsManager.Instance.bankCardsData); } }
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); }
public override void OnEnter(BaseContext context) { base.OnEnter(context); _context = context as NewFriendsContext; scroll.SetDatas <int>(ChatManager.Instance.GetFriendRequests()); }
public override void OnEnter(BaseContext context) { base.OnEnter(context); _context = context as TransferContext; _scrollView.SetDatas(AssetsManager.Instance.GetRecentTransList()); }
private void Refresh() { _scrollView.SetDatas(AssetsManager.Instance.bankCardsData); }
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); }