private void UnivInfo_Load(object sender, EventArgs e)
 {
     StudentProfile sp = new StudentProfile();
     List<string> s = sp.getSession();
     for (int i = 0; i < s.Count; i++) {
         session_comboBox.Items.Add(s[i]);
     }
 }
 private void AddResult_Load(object sender, EventArgs e)
 {
     StudentProfile sp=new StudentProfile();
      List<string> session = sp.getSession();
      for (int i = 0; i < session.Count; i++) {
          session_comboBox.Items.Add(session[i]);
      }
        date = dateTimePicker1.Value.ToShortDateString();
        subject_comboBox.Items.Add("Mathematics");
        subject_comboBox.Items.Add("Physics");
        subject_comboBox.Items.Add("Chemistry");
 }
 private void BatchWisePrintResult_Load(object sender, EventArgs e)
 {
     StudentProfile sp = new StudentProfile();
     List<string> sesssion = sp.getSession();
     List<string> batch = sp.getBatch();
     for (int i = 0; i < sesssion.Count; i++) {
         session_comboBox.Items.Add(sesssion[i]);
     }
     for (int i = 0; i < batch.Count; i++) {
         batch_comboBox.Items.Add(batch[i]);
     }
     date = dateTimePicker1.Value.ToShortDateString();
 }