//根据索引找到对应ItemInfo成员

    /*T ListItemInfoFind<T> (List<T> Fromlist,T Member)
     * {
     *      foreach (T info in Fromlist)
     *      {
     *              if(info==Member)
     *                      return info;
     *      }
     *      return null;
     * }*/

    //列表更新
    void Reflsh(List <UserAdmin> refashList)
    {
        Clear();

        refashList.Sort((x, y) =>
        {
            if (PlayerNetwork.IsOnline(x.Id) && PlayerNetwork.IsOnline(y.Id))
            {
                return(0);
            }
            else if (PlayerNetwork.IsOnline(x.Id))
            {
                return(-1);
            }
            else
            {
                return(1);
            }
        });

        foreach (UserAdmin Admininfo in refashList)
        {
            AddAdminstItem(Admininfo);
        }
        mGird.repositionNow = true;
    }
    //添加Guid下Item成员
    void AddAdminstItem(UserAdmin userAdmin)
    {
        GameObject obj = GameObject.Instantiate(UIAdminstratorItemPrefab) as GameObject;

        obj.transform.parent        = mGird.transform;
        obj.transform.localScale    = Vector3.one;
        obj.transform.localPosition = Vector3.zero;
        obj.SetActive(true);

        UIAdminstratorItem item = obj.GetComponent <UIAdminstratorItem>();

        if (PlayerNetwork.IsOnline(userAdmin.Id))
        {
            item.NameText = "[33FF00]" + userAdmin.RoleName + "[-]";
        }
        else
        {
            item.NameText = "[999999]" + userAdmin.RoleName + "[-]";
        }

        item.mUserAdmin          = userAdmin;
        item.e_ItemAdminOnClick += ItemAdminOnClick;
        item.e_ItemAdminOnpitch += ItemAdminOnpitch;

        item.isForbiddenRelsh = true;

        UIAdminstratorctr.ShowAssistant(item);

        if (ServerAdministrator.IsAdmin(PlayerNetwork.mainPlayerId))       //需要判断自己是否是管理员
        {
            if (Ispersonnel)
            {
                item.mSetBtn.SetActive(true);
                item.mForbidenBtn.SetActive(true);

                mForbidsBuildBtn.SetActive(true);
                mForbidsNewPalyerBtn.SetActive(true);

                mBanBtn.SetActive(true);
                mBanAllBtn.SetActive(true);
            }
            else
            {
                mBanBtn.SetActive(false);
                mBanAllBtn.SetActive(false);

                mReMoveBtn.SetActive(true);
                mReMoveAllBtn.SetActive(true);
            }
        }
        else
        {
            mForbidsBuildBtn.SetActive(false);
            mForbidsNewPalyerBtn.SetActive(false);
        }

        /*if(item.mUserAdmin.HasPrivileges(AdminMask.AdminRole))
         * {
         *      item.mSetBtn.SetActive(true);
         *      item.mForbidenBtn.SetActive(true);
         * }*/
        mItemList.Add(item);
    }