Add selected homeworks to a list
This commit is contained in:
parent
b70948e8da
commit
8fe0cf2df7
@ -838,6 +838,24 @@ namespace EduNetworkBuilder
|
|||||||
//Now, make a prompt box for it.
|
//Now, make a prompt box for it.
|
||||||
|
|
||||||
Dictionary<string, bool> Response = NB.CheckPromptBox(HWList, "Homework to include", Properties.Resources.NBIco);
|
Dictionary<string, bool> Response = NB.CheckPromptBox(HWList, "Homework to include", Properties.Resources.NBIco);
|
||||||
|
if (Response == null) return; //if we canceled out
|
||||||
|
|
||||||
|
//Add each homework to a list
|
||||||
|
List<SchoolworkClass> HWClassList = new List<SchoolworkClass>();
|
||||||
|
int index = 0;
|
||||||
|
foreach(string one in HWList.Keys)
|
||||||
|
{
|
||||||
|
if (index < CurrentUser.Projects.Count)
|
||||||
|
{
|
||||||
|
if (Response[one])
|
||||||
|
HWClassList.Add(CurrentUser.Projects[index]);
|
||||||
|
}
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
|
||||||
|
MessageBox.Show(HWClassList.Count.ToString() + " selected");
|
||||||
|
//Choose a file
|
||||||
|
//save that list in that file
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnReadAllStudentHomework_Click(object sender, EventArgs e)
|
private void btnReadAllStudentHomework_Click(object sender, EventArgs e)
|
||||||
|
Loading…
Reference in New Issue
Block a user