public void AddChildNodes(TreeNode parentNode, Rubric rubric, int parentKey)
 {
     foreach (int node in rubric.Nodes[parentKey].Children)
     {
         RubricNode child = rubric.Nodes[node];
         TreeNode treeViewNode = parentNode.Nodes.Add(child.ToString());
         treeViewNode.Name = child.Criteria.CriteriaID.ToString();
         AddChildNodes(treeViewNode, rubric, child.Criteria.CriteriaID);
     }
 }
Example #2
0
 public Assignment(int aID, string aName, DateTime aDueDate)
 {
     Rubric = new Rubric();
     assignmentID = aID;
     name = aName;
     dueDate = aDueDate;
 }
Example #3
0
 public Assignment()
 {
     Rubric = new Rubric();
     assignmentID = noID;
 }