ask sutdents to log out before opening a new user file.

This commit is contained in:
Tim Young 2017-08-12 15:40:27 -05:00
parent 68bdd59727
commit aaa39b3d16
2 changed files with 8 additions and 0 deletions

View File

@ -1746,6 +1746,10 @@ namespace EduNetworkBuilder
}
else if (extension == ".enbu")
{
if(CurrentUser != null && !CurrentUser.isAdmin)
{
MessageBox.Show(NB.Translate("NB_LogOutFirst"));
}
int counter = 0;
PersonClass tUser = null;
while (counter < 3)

View File

@ -1885,6 +1885,10 @@
<value>Log out?</value>
<comment>NB_Logout = Log out?</comment>
</data>
<data name="NB_LogOutFirst" xml:space="preserve">
<value>Please log out before loading a new person file</value>
<comment>NB_LogOutFirst = Please log out before loading a new person file</comment>
</data>
<data name="N_PromptToSubmit" xml:space="preserve">
<value>You have completed the homework. Would you like to submit it? If you want to clean it up and submit later, click No. Go to "Edit" -&gt; "Submit" when you want to submit it.</value>
<comment>N_PromptToSubmit = You have completed the homework. Would you like to submit it? If you want to clean it up and submit later, click No. Go to "Edit" -&gt; "Submit" when you want to submit it.</comment>