populate treenode with students. So we can select them
This commit is contained in:
		@@ -230,10 +230,19 @@ namespace EduNetworkBuilder
 | 
				
			|||||||
                    Node.Tag = SWC; //Store the schoolwork record in with the node                   
 | 
					                    Node.Tag = SWC; //Store the schoolwork record in with the node                   
 | 
				
			||||||
                    Top.Nodes.Add(Node);
 | 
					                    Top.Nodes.Add(Node);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                //we have a students tree
 | 
					
 | 
				
			||||||
                Node = new TreeNode(NB.Translate("PPF_Students"));
 | 
					                //we have a students tree.  Use top again so we can populate it
 | 
				
			||||||
                Node.Tag = "Students"; //Do not translate this
 | 
					                Top = new TreeNode(NB.Translate("PPF_Students"));
 | 
				
			||||||
                tvClasswork.Nodes.Add(Node);
 | 
					                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);
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user