We cannot delete or give submitted homework
This commit is contained in:
parent
15e0092699
commit
ed48b943aa
@ -501,6 +501,10 @@ namespace EduNetworkBuilder
|
||||
}
|
||||
private void UpdateFormFromSchoolwork()
|
||||
{
|
||||
bool OnStudentTree = false;
|
||||
TreeNode Node = tvClasswork.SelectedNode;
|
||||
if (Node != null && Node.FullPath.StartsWith("Student"))
|
||||
OnStudentTree = true;
|
||||
if (ViewedSchoolwork == null)
|
||||
{
|
||||
tbHWClass.Text = "";
|
||||
@ -547,6 +551,11 @@ namespace EduNetworkBuilder
|
||||
btnHWGive.Visible = false;
|
||||
btnHWSave.Visible = false;
|
||||
}
|
||||
if(OnStudentTree)
|
||||
{ //We cannot give or delete submitted stuff
|
||||
btnHWDelete.Visible = false;
|
||||
btnHWGive.Visible = false;
|
||||
}
|
||||
btnLaunch.Visible = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user