private void generateBtn_Click(object sender, EventArgs e) { crsBS.EndEdit(); St_AnswerManager.ExamGeneration(Convert.ToInt32(frmLogin.StID), Convert.ToInt32(crsCombo.SelectedValue.ToString())); CrsID = crsCombo.SelectedValue.ToString(); this.Hide(); formQ.Show(); }
public void generateBtn_Click(object sender, EventArgs e) { int i = 0; foreach (ComboBox c in panel1.Controls) { St_AnswerManager.answerQuestion( Convert.ToInt32(c.SelectedValue.ToString()), Convert.ToInt32(frmLogin.StID), Convert.ToInt32(frmStudentCrs.CrsID), c.GetItemText(c.SelectedItem) ); i++; } St_AnswerManager.AnswerCorrection( Convert.ToInt32(frmLogin.StID), Convert.ToInt32(frmStudentCrs.CrsID) ); this.Hide(); formGrade.Show(); }