Esempio n. 1
0
        private void BindData()
        {
            Courses courseda = new Courses(Globals.CurrentIdentity);
            Assignment asst = new Assignments(Globals.CurrentIdentity).GetInfo(GetAsstID());
            Course course = courseda.GetInfo(asst.CourseID);

            Section.SectionList sections = courseda.GetSections(course.ID);
            CourseMember.CourseMemberList mems = courseda.GetMembers(course.ID, null);

            ArrayList secmems = sections;
            secmems.AddRange(mems);

            dgUsers.DataSource = secmems;
            dgUsers.DataBind();

            cmdEvaluate.Enabled = asst.ResultRelease;
            lblEvaluate.Visible = !asst.ResultRelease;

            lnkSecExpl.Attributes.Add("onClick",
                @"window.open('sectionexpl.aspx?CourseID=" + course.ID +
                @"', '"+ course.ID+@"', 'width=430, height=530')");
        }
Esempio n. 2
0
        private void BindSections()
        {
            Courses courseda = new Courses(Globals.CurrentIdentity);
            Section.SectionList sections = courseda.GetSections(GetCourseID());

            dgSections.DataSource = sections;
            dgSections.DataBind();
        }
Esempio n. 3
0
        private void LoadSectionFolderNode(TreeNode par, int courseID)
        {
            Courses courseda = new Courses(Globals.CurrentIdentity);
            Section.SectionList sects = courseda.GetSections(courseID);

            //Add sections
            par.Nodes.Clear();
            foreach (Section sect in sects)
                AddSectionNode(par.Nodes, sect);

            //Add All User node
            AddAllUsersNode(par.Nodes, courseID);
        }