Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        OddClasses.ItemDataBound += new RepeaterItemEventHandler(Classes_ItemDataBound);
        EvenClasses.ItemDataBound += new RepeaterItemEventHandler(Classes_ItemDataBound);

        _data = ClassroomController.GetUserClassData(this.CourseSKU, this.UserID);
        _product = Monaco.Classroom.Ordering.ProductController.GetProduct(this.CourseSKU);

        if (!IsPostBack)
            DataBind();
    }
Пример #2
0
        public static UserClassData ToUserClassData(this DataSet ds, bool IsExtraFieldsFetched)
        {
            UserClassData data = new UserClassData();
            if (IsExtraFieldsFetched)
                data.SkuClasses = ToClassInfo(ds.Tables[0], IsExtraFieldsFetched);
            else
                data.SkuClasses = ToClassInfo(ds.Tables[0]);
            data.UserVideos = ds.Tables[1].ToUserVideo();
            data.UserAudios = ds.Tables[2].ToUserAudio();
            data.UserWorkbooks = ds.Tables[3].ToUserWorkbook();
            data.Course = ds.Tables[4].Rows[0].ToCourseInfoPercentIncluded();

            return data;
        }