コード例 #1
0
 internal void RefreshCell(UIWrapGridCell cell)
 {
     if (null != OnRefreshCell)
     {
         OnRefreshCell(cell);
     }
 }
コード例 #2
0
        private void _OnRefreshCell(UIWrapGridCell cell)
        {
            var index   = cell.Index;
            var value   = _controller.GetValueByIndex(index);
            var display = cell.DisplayObject as ItemDisplay;

            display.Refresh(value);
        }
コード例 #3
0
        private void _OnRefreshTimeCell(UIWrapGridCell cell)
        {
            var index   = cell.Index;
            var value   = _controller.GetTimeScoreByIndex(index);
            var display = cell.DisplayObject as UITimeRecordItem;

            display.Refresh(value);
        }
コード例 #4
0
        private void _OnRefreshCell(UIWrapGridCell cell)
        {
            var index   = cell.Index;
            var value   = _controller.GetChatVoByIndex(index);
            var display = cell.DisplayObject as UIFightChatItem;

            display.Refresh(value);
        }
コード例 #5
0
        private void _OnRefreshCell(UIWrapGridCell cell)
        {
            var index   = cell.Index;
            var value   = _controller.GetPaybackByIndex(index);
            var display = cell.DisplayObject as UIInforAddDebtItem;

            display.Refresh(value);
        }
コード例 #6
0
        private void _OnRefreshCell(UIWrapGridCell cell)
        {
            var index   = cell.Index;
            var value   = _controller.GetGameDataByIndex(index);
            var display = cell.DisplayObject as PersonalItem;

            display.Refresh(value);
        }
コード例 #7
0
        /// <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);
        }
コード例 #8
0
        private void _OnRefreshBalanceCell(UIWrapGridCell cell)
        {
            var index   = cell.Index;
            var value   = _controller.GetBalanceByIndex(index);
            var display = cell.DisplayObject as UIBalanceInforItem;

            display.Refresh(value);
        }
コード例 #9
0
        /// <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);
        }
コード例 #10
0
        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);
        }
コード例 #11
0
        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);
            }
        }