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); } }
public Assignment(int aID, string aName, DateTime aDueDate) { Rubric = new Rubric(); assignmentID = aID; name = aName; dueDate = aDueDate; }
public Assignment() { Rubric = new Rubric(); assignmentID = noID; }