internal void RefreshCell(UIWrapGridCell cell) { if (null != OnRefreshCell) { OnRefreshCell(cell); } }
private void _OnRefreshCell(UIWrapGridCell cell) { var index = cell.Index; var value = _controller.GetValueByIndex(index); var display = cell.DisplayObject as ItemDisplay; display.Refresh(value); }
private void _OnRefreshTimeCell(UIWrapGridCell cell) { var index = cell.Index; var value = _controller.GetTimeScoreByIndex(index); var display = cell.DisplayObject as UITimeRecordItem; display.Refresh(value); }
private void _OnRefreshCell(UIWrapGridCell cell) { var index = cell.Index; var value = _controller.GetChatVoByIndex(index); var display = cell.DisplayObject as UIFightChatItem; display.Refresh(value); }
private void _OnRefreshCell(UIWrapGridCell cell) { var index = cell.Index; var value = _controller.GetPaybackByIndex(index); var display = cell.DisplayObject as UIInforAddDebtItem; display.Refresh(value); }
private void _OnRefreshCell(UIWrapGridCell cell) { var index = cell.Index; var value = _controller.GetGameDataByIndex(index); var display = cell.DisplayObject as PersonalItem; display.Refresh(value); }
/// <summary> /// 刷新基本负债信息 /// </summary> /// <param name="cell"></param> private void _OnRefreshBasePayCell(UIWrapGridCell cell) { var index = cell.Index; var value = _controller.GetBasePayBackByIndex(index); var display = cell.DisplayObject as UIBorrowBasePayItem; display.Refresh(value); }
private void _OnRefreshBalanceCell(UIWrapGridCell cell) { var index = cell.Index; var value = _controller.GetBalanceByIndex(index); var display = cell.DisplayObject as UIBalanceInforItem; display.Refresh(value); }
/// <summary> /// 刷新数据单元 /// </summary> /// <param name="cell"></param> private void _OnRefreshCell(UIWrapGridCell cell) { var index = cell.Index; var value = _controller.GetBorrowDataByIndex(index); var display = cell.DisplayObject as UIBorrowRecordItem; display.Refresh(value); }
private void _OnRefreshCell(UIWrapGridCell cell) { // Console.Warning.WriteLine ("当前的索引值:"+cell.Index.ToString()); var index = cell.Index; var value = _controller.GetChatVoByIndex(index); var display = cell.DisplayObject as UIGameHallChatItem; display.Refresh(value); }
private void _CreateItemPools(GameObject go) { _cells = new UIWrapGridCell[GridContent.viewCount]; _cells[0] = new UIWrapGridCell(this, go); for (int i = 1; i < GridContent.viewCount; ++i) { var cloned = GameObject.Instantiate(go); cloned.transform.SetParent(go.transform.parent); cloned.transform.localScale = Vector3.one; cloned.SetActiveEx(false); _cells[i] = new UIWrapGridCell(this, cloned); } }