/// <summary> /// 获取战绩信息 /// </summary> /// <param name="bytes"></param> private void GetGradeInfo(byte[] bytes) { GetGradeInfoS2C package = NetMgr.Instance.DeSerializes <GetGradeInfoS2C>(bytes); if (package != null) { SendNotification(NotificationConstant.MEDI_HALL_INITGRADEINFO, package); } }
/// <summary> /// 初始化战绩数据 /// </summary> /// <param name="body"></param> private void InitGradeInfo(object body) { ArrayList gradeList = new ArrayList(); GetGradeInfoS2C package = (GetGradeInfoS2C)body; for (int i = 0; i < package.gradeDataS2C.Count; i++) { GradeDataS2C gradeInfo = package.gradeDataS2C[i]; gradeList.Add(new GradeScrollData(i, gradeInfo.roomID, gradeInfo.time, gradeInfo.roomCode, gradeInfo.usersInfo)); } this.View.GradeTableView.DataProvider = gradeList; }
/// <summary> /// 初始化战绩数据 /// </summary> /// <param name="body"></param> private void InitGradeInfo(object body) { ArrayList gradeList = new ArrayList(); GetGradeInfoS2C package = (GetGradeInfoS2C)body; for (int i = 0; i < package.gradeDataS2C.Count; i++) { GradeDataS2C gradeInfo = package.gradeDataS2C[i]; gradeList.Add(gradeInfo); } this.View.ParticularsTableView.DataProvider = gradeList; }