ask sutdents to log out before opening a new user file.
This commit is contained in:
parent
68bdd59727
commit
aaa39b3d16
@ -1746,6 +1746,10 @@ namespace EduNetworkBuilder
|
|||||||
}
|
}
|
||||||
else if (extension == ".enbu")
|
else if (extension == ".enbu")
|
||||||
{
|
{
|
||||||
|
if(CurrentUser != null && !CurrentUser.isAdmin)
|
||||||
|
{
|
||||||
|
MessageBox.Show(NB.Translate("NB_LogOutFirst"));
|
||||||
|
}
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
PersonClass tUser = null;
|
PersonClass tUser = null;
|
||||||
while (counter < 3)
|
while (counter < 3)
|
||||||
|
@ -1885,6 +1885,10 @@
|
|||||||
<value>Log out?</value>
|
<value>Log out?</value>
|
||||||
<comment>NB_Logout = Log out?</comment>
|
<comment>NB_Logout = Log out?</comment>
|
||||||
</data>
|
</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">
|
<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" -> "Submit" when you want to submit it.</value>
|
<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" -> "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" -> "Submit" when you want to submit it.</comment>
|
<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" -> "Submit" when you want to submit it.</comment>
|
||||||
|
Loading…
Reference in New Issue
Block a user