Error out if double-clicking a homework file. We need to load a user profile so the homework can be added to it.
This commit is contained in:
parent
2bd146857a
commit
83dfef6ad2
@ -1708,6 +1708,14 @@ namespace EduNetworkBuilder
|
||||
CurrentUser = PPF.Edit(); //This does the form as dialog. When we come back, update the menu.
|
||||
UpdateMenu();
|
||||
}
|
||||
else if (extension == ".enbh")
|
||||
{
|
||||
if(NB.GetUser() == null)
|
||||
{
|
||||
MessageBox.Show(NB.Translate("NB_LoadUserFirst"));
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show(NB.Translate("NB_InvalidFile"));
|
||||
|
@ -1765,6 +1765,10 @@
|
||||
<value>Are you sure you want to delete this homework?</value>
|
||||
<comment>PPF_ConfirmHWDelete = Are you sure you want to delete this homework?</comment>
|
||||
</data>
|
||||
<data name="NB_LoadUserFirst" xml:space="preserve">
|
||||
<value>You must load a user profile before you can open a homework file.</value>
|
||||
<comment>NB_LoadUserFirst = You must load a user profile before you can open a homework file.</comment>
|
||||
</data>
|
||||
<data name="PPF_ChangePassword" xml:space="preserve">
|
||||
<value>Change Password</value>
|
||||
<comment>PPF_ChangePassword = Change Password</comment>
|
||||
|
Loading…
Reference in New Issue
Block a user