Example #1
0
 public static UserCourseData ToUserCourseData(this DataSet ds, bool IsPercentAvailable)
 {
     UserCourseData courseData = new UserCourseData();
     courseData.UserCourseInfoList = ToUserCourseInfoWithCompletedPercent(ds.Tables[0]);
     courseData.UserClassInfoList = ToSkuStatisticsClassInfo(ds.Tables[1]);
     return courseData;
 }
Example #2
0
    protected void BindRepeater()
    {
        userCourseData = CourseInfo.GetUserCoursesDataByUserId(this.UserId);

        if (userCourseData.UserCourseInfoList.Count > 0)
        {
            CourseListRepeater.DataSource = userCourseData.UserCourseInfoList;
            CourseListRepeater.DataBind();
        }
        else
            MultiView1.SetActiveView(NoCoursesView);

        userCourseData = null;
        _currentUserCourse = null;
    }