void OnBanBtn() { foreach (UserAdmin Userinfo in mpitchAdminList) { //Move<UserAdmin>(UIAdminstratorctr.mUIPersonelInfoList,Userinfo,UIAdminstratorctr.mUIBalckInfoList); UIAdminstratorctr.UIAddBlacklist(Userinfo); } mpitchAdminList.Clear(); // /* if(UIAdminstratorctr.UIArrayPersonnelAdmin.Count%8==0) * mEndPage=UIAdminstratorctr.UIArrayPersonnelAdmin.Count/8; * else * mEndPage=UIAdminstratorctr.UIArrayPersonnelAdmin.Count/8+1; * * //mPersonelInfoList.Clear(); * UIAdminstratorctr.mUIPersonelInfoList.Clear(); * mCurrentPage=1; * for(int i=(mCurrentPage-1)*8;i<UIAdminstratorctr.UIArrayPersonnelAdmin.Count;i++) * { * if(i<mCurrentPage*8) * UIAdminstratorctr.mUIPersonelInfoList.Add((UserAdmin)UIAdminstratorctr.UIArrayPersonnelAdmin[i]); * else * break; * } * * mLbPage.text=mCurrentPage.ToString()+"/"+mEndPage.ToString(); * * Reflsh(UIAdminstratorctr.mUIPersonelInfoList);*/ }
void OnBanAllBtn() { ArrayList ArrayPersonnelAdmin = UIAdminstratorctr.UIArrayPersonnelAdmin; foreach (UserAdmin Userinfo in ArrayPersonnelAdmin) { UIAdminstratorctr.UIAddBlacklist(Userinfo); //UIAdminstratorctr.UIAddAllBlacklist(Userinfo); } MustShow(); //ArrayPersonnelAdmin.Clear(); //mPersonelInfoList.Clear(); //mLbPage.text="0/0"; Reflsh(UIAdminstratorctr.mUIPersonelInfoList); ArrayPersonnelAdmin.Clear(); }