private void CourseComboBox_SelectedValueChanged(object sender, EventArgs e) { try { int i = int.Parse(CourseComboBox.SelectedValue.ToString()); LoadTo.combobox(BlockComboBox, "SELECT id, name FROM block WHERE course_id=" + i); } catch { } }
private void BlockComboBox_SelectedValueChanged(object sender, EventArgs e) { try { int i = int.Parse(BlockComboBox.SelectedValue.ToString()); LoadTo.combobox(QuesComboBox, "SELECT id, ques FROM question WHERE block_id=" + i); } catch { } }
private void LearnForm_Load(object sender, EventArgs e) { LoadTo.combobox(CourseComboBox, "SELECT * FROM course"); }
private void FinalExamForm_Load(object sender, EventArgs e) { metroButton1.Select(); LoadTo.combobox(CourseComboBox, "SELECT * FROM course"); updateExams(); }
private void ExamsFormcs_Load(object sender, EventArgs e) { LoadTo.combobox(CourseComboBox, "SELECT * FROM course"); updateExams(); }
private void AddQuestion_Load(object sender, EventArgs e) { LoadTo.combobox(CourseComboBox, "SELECT * FROM course"); }