private void generateBtn_Click(object sender, EventArgs e) { ExamManager.ExamCreate(Convert.ToInt32(txtDur.Text), Convert.ToInt32(crsCombo.SelectedValue.ToString())); exBS.EndEdit(); MessageBox.Show("Exam Created Successfully!"); this.gridView(); }