Mark items needing attention as bold. Students see un-submitted homeworks bolded. Teachers see ungraded homework bolded

This commit is contained in:
2017-08-09 09:32:32 -05:00
parent 405d45e164
commit b1c415c686
4 changed files with 42 additions and 2 deletions

View File

@ -432,6 +432,12 @@ namespace EduNetworkBuilder
return myWin;
}
public static PersonProfileForm GetProfileWin()
{
PersonProfileForm myWin = (PersonProfileForm)Application.OpenForms["PersonProfileForm"];
if (myWin == null) return null;
return myWin;
}
public static PersonClass GetUser()
{
BuilderWindow BW = GetBuilderWin();
@ -1083,6 +1089,13 @@ namespace EduNetworkBuilder
return Combined;
}
public static Font GetFont()
{
PersonProfileForm PPF = GetProfileWin();
if (PPF != null) return PPF.GetFont();
return new Font(FontFamily.GenericSansSerif, 10.0F, FontStyle.Bold);
}
public static void NotImplimentedMessage()
{
MessageBox.Show(Translate("NB_NotImplimented"));