namespace TyphoonUI { /// /// 池对象 /// public class ScrollCellPoolObject { public int CellIndex { get; set; } //元素ID public IScrollCell Cell { get; set; } //元素 public int PoolID { get; set; } //池ID public bool IsBusy { get; set; } //使用中 public void BeforeGet() { IsBusy = true; } //回收前处理 public void BeforeRecycle() { CellIndex = -1; Cell.SetVisible(false); IsBusy = false; } public void Release() { Cell = null; } } }