Move submit homework to separate function. So we can call it separately.

This commit is contained in:
Tim Young 2017-08-11 15:06:50 -05:00
parent 840a6877bf
commit 042d66e7c9

View File

@ -2034,7 +2034,7 @@ namespace EduNetworkBuilder
UpdateMenu(); UpdateMenu();
} }
private void submitHomeworkToolStripMenuItem_Click(object sender, EventArgs e) private void SubmitHomework()
{ {
if (myNetwork.WhatFrom == null) return; //We cannot submit it if (myNetwork.WhatFrom == null) return; //We cannot submit it
@ -2046,6 +2046,11 @@ namespace EduNetworkBuilder
UpdateMenu(); UpdateMenu();
} }
private void submitHomeworkToolStripMenuItem_Click(object sender, EventArgs e)
{
SubmitHomework();
}
private void markAsGradedToolStripMenuItem_Click(object sender, EventArgs e) private void markAsGradedToolStripMenuItem_Click(object sender, EventArgs e)
{ {
if (myNetwork.WhatFrom == null) return; //We cannot submit it if (myNetwork.WhatFrom == null) return; //We cannot submit it