Esempio n. 1
0
        private void ActivateAssignmentComponents(Assignment assignment)
        {
            manager.DeactivateAllComponents();

            //RUBRICS
            if (assignment.HasRubric)
            {
                manager.GetComponentByType(typeof(RubricController)).IsSelected = true;
            }

            //STUDENT RUBRICS
            if (assignment.HasStudentRubric)
            {
                manager.GetComponentByType(typeof(StudentRubricController)).IsSelected = true;
            }

            //COMMENT CATEGORIES
            if (assignment.HasCommentCategories)
            {
                manager.GetComponentByType(typeof(CommentCategoryController)).IsSelected = true;
            }

            //TEAM ASSIGNMENTS
            if (assignment.HasTeams)
            {
                manager.GetComponentByType(typeof(TeamController)).IsSelected = true;
            }

            //DELIVERABLES
            if (assignment.HasDeliverables)
            {
                manager.GetComponentByType(typeof(DeliverablesController)).IsSelected = true;
            }

            if (null != assignment.ABETDepartment)
            {
                manager.GetComponentByType(typeof(ABETController)).IsSelected = true;
            }
        }