LoopListViewItem2 OnGetItemByIndex(LoopListView2 listView, int index)
        {
            if (index < 0)
            {
                return(null);
            }
            LoopListViewItem2 item       = listView.NewListViewItem("ItemPrefab1");
            ListItem10        itemScript = item.GetComponent <ListItem10>();

            if (item.IsInitHandlerCalled == false)
            {
                item.IsInitHandlerCalled = true;
                itemScript.Init();
            }
            for (int i = 0; i < mItemCountPerRow; ++i)
            {
                int itemIndex = index * mItemCountPerRow + i;
                if (itemIndex >= mListItemTotalCount)
                {
                    itemScript.mItemList[i].gameObject.SetActive(false);
                    continue;
                }
                ItemData itemData = DataSourceMgr.Get.GetItemDataByIndex(itemIndex);
                if (itemData != null)
                {
                    itemScript.mItemList[i].gameObject.SetActive(true);
                    itemScript.mItemList[i].SetItemData(itemData, itemIndex);
                }
                else
                {
                    itemScript.mItemList[i].gameObject.SetActive(false);
                }
            }
            return(item);
        }
        private LoopListViewItem2 OnGetItemByIndex(LoopListView2 listView, int index)
        {
            if (index < 0)
            {
                return((LoopListViewItem2)null);
            }
            LoopListViewItem2 loopListViewItem2 = listView.NewListViewItem("ItemPrefab1");
            ListItem10        component         = (ListItem10)((Component)loopListViewItem2).GetComponent <ListItem10>();

            if (!loopListViewItem2.IsInitHandlerCalled)
            {
                loopListViewItem2.IsInitHandlerCalled = true;
                component.Init();
            }
            for (int index1 = 0; index1 < 3; ++index1)
            {
                int num = index * 3 + index1;
                if (num >= this.mListItemTotalCount)
                {
                    ((Component)component.mItemList[index1]).get_gameObject().SetActive(false);
                }
                else
                {
                    ItemData itemDataByIndex = DataSourceMgr.Get.GetItemDataByIndex(num);
                    if (itemDataByIndex != null)
                    {
                        ((Component)component.mItemList[index1]).get_gameObject().SetActive(true);
                        component.mItemList[index1].SetItemData(itemDataByIndex, num);
                    }
                    else
                    {
                        ((Component)component.mItemList[index1]).get_gameObject().SetActive(false);
                    }
                }
            }
            return(loopListViewItem2);
        }