From b70948e8dae4c4e15c80a1399b8afcc4b93459b6 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Sat, 5 Aug 2017 17:01:37 -0500 Subject: [PATCH] Prompt for which homeworks to include --- EduNetworkBuilder/PersonProfileForm.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/EduNetworkBuilder/PersonProfileForm.cs b/EduNetworkBuilder/PersonProfileForm.cs index dbf601f..0b6be02 100644 --- a/EduNetworkBuilder/PersonProfileForm.cs +++ b/EduNetworkBuilder/PersonProfileForm.cs @@ -827,7 +827,17 @@ namespace EduNetworkBuilder private void btnExportHomework_Click(object sender, EventArgs e) { - NB.NotImplimentedMessage(); + //Generate a list of homework, so we can make a check-box for it... + Dictionary HWList = new Dictionary(); + foreach(SchoolworkClass sc in CurrentUser.Projects) + { + string one = sc.DueDate.ToShortDateString() + " - " + sc.Name; + HWList.Add(one, false); + } + + //Now, make a prompt box for it. + + Dictionary Response = NB.CheckPromptBox(HWList, "Homework to include", Properties.Resources.NBIco); } private void btnReadAllStudentHomework_Click(object sender, EventArgs e)