Example #1
0
        private void OnShowAllListItem()
        {
            if (CurListView == null)
            {
                return;
            }
            var gm    = GameListModel.Instance;
            var group = gm.CurGroup;

            if (group == _curGroup)
            {
                return;
            }
            _curGroup = group;
            var   gGroup = gm.GetGroup(group);
            IList list   = null;

            if (gGroup != null)
            {
                list = gGroup.GameListModels;
            }
            CurListView.StartDataIndex = Util.GetInt("GameList_StartDataIndex");//GameListController.Instance.CurStartDataIndex;
            var dataFormat = GameListController.Instance.DataFormat;

            if (dataFormat != null && dataFormat.Length > 0)
            {
                CurListView.DataFormat = dataFormat;
            }
            CurListView.UpdateView(list);
            Util.SetInt("GameList_StartDataIndex", CurListView.StartDataIndex);
        }
Example #2
0
        private void OnShowAllListItem(string gk)
        {
            if (CurListView == null)
            {
                return;
            }
            var list = GetListData();

            CurListView.Init();
            CurListView.UpdateView(list);
            CurListView.Show();
//            Util.SetInt("RoomList_StartDataIndex", CurListView.StartDataIndex);
        }