Fix teachers see ungraded homework as being bold
This commit is contained in:
parent
327722bc97
commit
e864276316
@ -513,7 +513,7 @@ namespace EduNetworkBuilder
|
|||||||
Node = new TreeNode(DrawFrom[i].Name);
|
Node = new TreeNode(DrawFrom[i].Name);
|
||||||
Node.Tag = DrawFrom[i];
|
Node.Tag = DrawFrom[i];
|
||||||
Master.Nodes.Add(Node);
|
Master.Nodes.Add(Node);
|
||||||
if (isAdmin && !DrawFrom[i].IsGraded) //Bold ungraded homework
|
if (ForTeacher && !DrawFrom[i].IsGraded) //Bold ungraded homework
|
||||||
{
|
{
|
||||||
Font tFont = NB.GetFont();
|
Font tFont = NB.GetFont();
|
||||||
Node.NodeFont = new Font(tFont.FontFamily, tFont.Size, FontStyle.Bold);
|
Node.NodeFont = new Font(tFont.FontFamily, tFont.Size, FontStyle.Bold);
|
||||||
@ -521,7 +521,7 @@ namespace EduNetworkBuilder
|
|||||||
count++; //How many submitted versions are there
|
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();
|
Font tFont = NB.GetFont();
|
||||||
Master.NodeFont = new Font(tFont.FontFamily, tFont.Size, FontStyle.Bold);
|
Master.NodeFont = new Font(tFont.FontFamily, tFont.Size, FontStyle.Bold);
|
||||||
|
Loading…
Reference in New Issue
Block a user