// SetIndSubjects is called to update choice for a single student // chosenSet should be set of subjects taken by an individual student public void SetIndSubjects(Subjects chosenSet) { // set the choices that have been set for a single student for (int i = 0; i < chosenSet.GetCurrentSize(); i++) { subjectEntry[i].Text = chosenSet.GetSubject(i).ToString(); } }
// SetSubjectPullDown sets the main pull down lists for set of subjects // only needs to be updated if lists change // fullSet should be the full set of subjects on offer private void SetSubjectPullDown(int comboToUpdate) { for (int i = 0; i < fullListOfSubjects.GetCurrentSize(); i++) { subjectEntry[comboToUpdate].Items.Add(fullListOfSubjects.GetSubject(i)); subjectEntry[comboToUpdate].Text = "Select from list"; } }