Esempio n. 1
0
        private void __BindData()
        {
            SiteRoles[] rolesArray;
            ArrayList   list;

            rolesArray          = SiteRoles.List(SitePortal.GetCurrentPortalId());
            list                = PageUtil.GetPagedResult(rolesArray, this.PaginationBar1.PageIndex - 1, this.PaginationBar1.PageSize);
            this.rpt.DataSource = list;
            this.rpt.DataBind();
            this.PaginationBar1.RecordCount = (int)rolesArray.Length;
            this.PaginationBar1.Visible     = (((int)rolesArray.Length) < this.PaginationBar1.PageSize) == 0;
            return;
        }
Esempio n. 2
0
        private void __BindData()
        {
            UserInfo[]      infoArray;
            List <UserInfo> list;
            UserInfo        info;
            ArrayList       list2;

            UserInfo[] infoArray2;
            int        num;
            bool       flag;

            infoArray  = UserInfo.GetAllActiveUsers();
            list       = new List <UserInfo>();
            infoArray2 = infoArray;
            num        = 0;
            goto Label_0047;
Label_0016:
            info = infoArray2[num];
            if (((info.UserName == "host") == 0) == null)
            {
                goto Label_0041;
            }
            list.Add(info);
Label_0041:
            num += 1;
Label_0047:
            if ((num < ((int)infoArray2.Length)) != null)
            {
                goto Label_0016;
            }
            infoArray = list.ToArray();
            Array.Sort(infoArray, new UserCompare());
            list2 = PageUtil.GetPagedResult(infoArray, this.PaginationBar1.PageIndex - 1, this.PaginationBar1.PageSize);
            this.rpt.DataSource = list2;
            this.rpt.DataBind();
            this.PaginationBar1.RecordCount = (int)infoArray.Length;
            this.PaginationBar1.Visible     = (((int)infoArray.Length) < this.PaginationBar1.PageSize) == 0;
            return;
        }