test all networks on the test-all
This commit is contained in:
parent
2a96f5866c
commit
a928f6b01c
@ -557,6 +557,20 @@ namespace EduNetworkBuilder
|
||||
{
|
||||
Node = new TreeNode(DrawFrom[i].Name);
|
||||
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);
|
||||
if (ForTeacher && !DrawFrom[i].IsGraded) //Bold ungraded homework
|
||||
{
|
||||
|
@ -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(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 == "")
|
||||
{
|
||||
//Prompt for a username
|
||||
@ -998,7 +1000,6 @@ namespace EduNetworkBuilder
|
||||
{
|
||||
if (CurrentUser == null) return;
|
||||
//Test all student's homework that is ungraded.
|
||||
bool didone = false;
|
||||
foreach(PersonClass student in CurrentUser.Students)
|
||||
{
|
||||
foreach(SchoolworkClass homework in student.Projects)
|
||||
@ -1007,12 +1008,8 @@ namespace EduNetworkBuilder
|
||||
{
|
||||
//We only need to test homework that is submitted and not graded.
|
||||
homework.CheckThatHomeworkIsSolved(); //Process it
|
||||
didone = true;
|
||||
break; //for now, just do one. For testing purposes
|
||||
}
|
||||
}
|
||||
if(didone)
|
||||
break; //For now, just do one.
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user