From 8134d8cb827b0eee50044cfbed6e485733642029 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Wed, 2 Aug 2017 17:07:12 -0500 Subject: [PATCH] Mark something as graded --- EduNetworkBuilder/NetworkBuilder.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/EduNetworkBuilder/NetworkBuilder.cs b/EduNetworkBuilder/NetworkBuilder.cs index 88a1384..0f01ded 100644 --- a/EduNetworkBuilder/NetworkBuilder.cs +++ b/EduNetworkBuilder/NetworkBuilder.cs @@ -2011,7 +2011,16 @@ namespace EduNetworkBuilder private void markAsGradedToolStripMenuItem_Click(object sender, EventArgs e) { - NB.NotImplimentedMessage(); + if (myNetwork.WhatFrom == null) return; //We cannot submit it + + if (CurrentUser == null) return; //We need to have a user or we will blow up + if (!CurrentUser.isAdmin) return; //Only Admin can grade it + + myNetwork.WhatFrom.IsGraded = true; + + PersonProfileForm PPF = new PersonProfileForm(CurrentUser); + PPF.Edit(); + UpdateMenu(); } } } \ No newline at end of file