public void MoveToFirst()
 {
     m_ScrollRect = this.GetComponent<CUIScrollRectCustom>();
     m_ScrollRect.MoveToFirst();
 }
 public void FitContent()
 {
     m_ScrollRect = this.GetComponent<CUIScrollRectCustom>();
     m_ScrollRect.FitContent();
 }
 public virtual void Init()
 {
     m_ScrollRect = this.GetComponent<CUIScrollRectCustom>();
     ReloadData();
 }
 public virtual void ReloadData(bool clearList = false)
 {
     m_ScrollRect = this.GetComponent<CUIScrollRectCustom>();
     Cell.SetActive (false);
     ClearList();
     m_ListViewItems.TrimExcess();
     m_ListViewItems.Clear();
     for (int i = 0; i < this.CountItem(); i++) {
         if (i >= m_ScrollRect.content.childCount) {
             var cell = CellForIndex (i);
             AddEventClick (cell.gameObject, i);
             m_ListViewItems.Add(cell);
         } else {
             var child = m_ScrollRect.content.GetChild (i).gameObject;
             var cell = child.AddComponent<CBaseCell>();
             cell.SetupCell(m_ScrollRect.content);
             AddEventClick (child, i);
             m_ListViewItems.Add (cell);
         }
         //if (LoadLate && m_ListViewItems[i].Active)
         //	m_ListViewItems[i].Active = (i < stepLoad);
         m_ListViewItems[i].ActiveCell();
     }
     itemLoaded = stepLoad;
 }