Пример #1
0
    /// <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);
        }
    }
Пример #2
0
    /// <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;
    }
Пример #3
0
    /// <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;
    }