public void loadIntakes()
 {
     intakes = dbm.getIntakes();
     student = dbm.getStudents();
     comboBox1.Items.Clear();
     comboBox1.Items.Add("ALL");
     foreach (DataSets.intake temp in intakes)
     {
         comboBox1.Items.Add(temp.code);
     }
     comboBox1.SelectedIndex = 0;
 }
 public void loadStudent()
 {
     student = dbm.getStudents();
     intakes = dbm.getIntakes();
     comboBox2.Items.Clear();
     foreach (DataSets.student temp in student)
     {
         comboBox2.Items.Add(temp.id);
     }
     comboBox1.Items.Clear();
     foreach (DataSets.intake temp in intakes)
     {
         comboBox1.Items.Add(temp.code);
     }
     if (comboBox2.Items.Count > 0)
     {
         comboBox2.SelectedIndex = 0;
     }
 }