| | |
| | | AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } } |
| | | private List<AuctionItemClass> AuctionRecordList = new List<AuctionItemClass>(); |
| | | int AuctionType = 0; |
| | | int MaxCount = 0; |
| | | #region Built-in |
| | | protected override void BindController() |
| | | {
|
| | | m_ScrollerController.OnRefreshCell += OnRefreshGridCell; |
| | | m_ScrollerControllerType.OnRefreshCell += OnRefreshGridCellType;
|
| | | m_ScrollerController.lockType = EnhanceLockType.KeepVertical;
|
| | | var count = FuncConfigConfig.Get("AuctionHouse").Numerical3;
|
| | | MaxCount = int.Parse(count);
|
| | | } |
| | | |
| | | protected override void AddListeners() |
| | |
| | | gridCtrl.Refresh();
|
| | | for (int i = 0; i < AuctionRecordList.Count; i++)
|
| | | {
|
| | | gridCtrl.AddCell(ScrollerDataType.Header, i);
|
| | | if (i < MaxCount)
|
| | | {
|
| | | gridCtrl.AddCell(ScrollerDataType.Header, i);
|
| | | } |
| | | }
|
| | | gridCtrl.Restart();
|
| | | } |