Fix teachers see ungraded homework as being bold

This commit is contained in:
Tim Young 2017-08-10 15:30:22 -05:00
parent 327722bc97
commit e864276316

View File

@ -513,7 +513,7 @@ namespace EduNetworkBuilder
Node = new TreeNode(DrawFrom[i].Name);
Node.Tag = DrawFrom[i];
Master.Nodes.Add(Node);
if (isAdmin && !DrawFrom[i].IsGraded) //Bold ungraded homework
if (ForTeacher && !DrawFrom[i].IsGraded) //Bold ungraded homework
{
Font tFont = NB.GetFont();
Node.NodeFont = new Font(tFont.FontFamily, tFont.Size, FontStyle.Bold);
@ -521,7 +521,7 @@ namespace EduNetworkBuilder
count++; //How many submitted versions are there
}
}
if(!isAdmin && count ==0) //bold homework that has not yet been submitted
if(!ForTeacher && count ==0) //bold homework that has not yet been submitted
{
Font tFont = NB.GetFont();
Master.NodeFont = new Font(tFont.FontFamily, tFont.Size, FontStyle.Bold);