Move submit homework to separate function. So we can call it separately.
This commit is contained in:
parent
840a6877bf
commit
042d66e7c9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user