test all networks on the test-all

This commit is contained in:
Tim Young 2017-08-17 10:29:37 -05:00
parent 2a96f5866c
commit a928f6b01c
2 changed files with 16 additions and 5 deletions

View File

@ -557,6 +557,20 @@ namespace EduNetworkBuilder
{ {
Node = new TreeNode(DrawFrom[i].Name); Node = new TreeNode(DrawFrom[i].Name);
Node.Tag = DrawFrom[i]; Node.Tag = DrawFrom[i];
string tooltip = FullName + "\n";
tooltip += DrawFrom[i].Name + "\n";
tooltip += DrawFrom[i].Description + "\n";
if(DrawFrom[i].IsSumbitted)
tooltip += "Submitted: " + DrawFrom[i].SaveDate.ToShortDateString() + "\n";
if(DrawFrom[i].theProject != null)
{
List<string> tMessages = DrawFrom[i].theProject.GetMessageStrings();
foreach(string one in tMessages)
{
tooltip += one + "\n";
}
}
Node.ToolTipText = tooltip;
Master.Nodes.Add(Node); Master.Nodes.Add(Node);
if (ForTeacher && !DrawFrom[i].IsGraded) //Bold ungraded homework if (ForTeacher && !DrawFrom[i].IsGraded) //Bold ungraded homework
{ {

View File

@ -95,6 +95,8 @@ namespace EduNetworkBuilder
myTooltip.SetToolTip(btnAllHomeworkToStudents, "Take all currently defined homework and put it into the student accounts. Do at the beginning of a class and before you generate the student files for the first time."); myTooltip.SetToolTip(btnAllHomeworkToStudents, "Take all currently defined homework and put it into the student accounts. Do at the beginning of a class and before you generate the student files for the first time.");
myTooltip.SetToolTip(btnExportHomework, "Export all the homework into a single homework file. Use this file to set up for another class."); myTooltip.SetToolTip(btnExportHomework, "Export all the homework into a single homework file. Use this file to set up for another class.");
tvClasswork.ShowNodeToolTips = true;
if (CurrentUser == null && FileName == "") if (CurrentUser == null && FileName == "")
{ {
//Prompt for a username //Prompt for a username
@ -998,7 +1000,6 @@ namespace EduNetworkBuilder
{ {
if (CurrentUser == null) return; if (CurrentUser == null) return;
//Test all student's homework that is ungraded. //Test all student's homework that is ungraded.
bool didone = false;
foreach(PersonClass student in CurrentUser.Students) foreach(PersonClass student in CurrentUser.Students)
{ {
foreach(SchoolworkClass homework in student.Projects) foreach(SchoolworkClass homework in student.Projects)
@ -1007,12 +1008,8 @@ namespace EduNetworkBuilder
{ {
//We only need to test homework that is submitted and not graded. //We only need to test homework that is submitted and not graded.
homework.CheckThatHomeworkIsSolved(); //Process it homework.CheckThatHomeworkIsSolved(); //Process it
didone = true;
break; //for now, just do one. For testing purposes
} }
} }
if(didone)
break; //For now, just do one.
} }
} }
} }