populate treenode with students. So we can select them

This commit is contained in:
Tim Young 2017-08-01 20:30:43 -05:00
parent 8cd1f22e7f
commit cbc36d7b75

View File

@ -230,10 +230,19 @@ namespace EduNetworkBuilder
Node.Tag = SWC; //Store the schoolwork record in with the node
Top.Nodes.Add(Node);
}
//we have a students tree
Node = new TreeNode(NB.Translate("PPF_Students"));
Node.Tag = "Students"; //Do not translate this
tvClasswork.Nodes.Add(Node);
//we have a students tree. Use top again so we can populate it
Top = new TreeNode(NB.Translate("PPF_Students"));
Top.Tag = "Students"; //Do not translate this
tvClasswork.Nodes.Add(Top);
//Create nodes for each student
foreach(PersonClass PC in CurrentUser.Students)
{
Node = new TreeNode(PC.UserName);
Node.Tag = PC;
Top.Nodes.Add(Node);
}
}
}