Beispiel #1
0
 private void CourseComboBox_SelectedValueChanged(object sender, EventArgs e)
 {
     try
     {
         int i = int.Parse(CourseComboBox.SelectedValue.ToString());
         LoadTo.listbox(CourseBlocksListBox, "SELECT name FROM block WHERE course_id=" + i);
     }
     catch { }
 }
Beispiel #2
0
        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 { }
        }
Beispiel #3
0
 private void LearnForm_Load(object sender, EventArgs e)
 {
     LoadTo.combobox(CourseComboBox, "SELECT * FROM course");
 }
Beispiel #4
0
 private void FinalExamForm_Load(object sender, EventArgs e)
 {
     metroButton1.Select();
     LoadTo.combobox(CourseComboBox, "SELECT * FROM course");
     updateExams();
 }
Beispiel #5
0
 private void ExamsFormcs_Load(object sender, EventArgs e)
 {
     LoadTo.combobox(CourseComboBox, "SELECT * FROM course");
     updateExams();
 }
Beispiel #6
0
 private void AddQuestion_Load(object sender, EventArgs e)
 {
     LoadTo.combobox(CourseComboBox, "SELECT * FROM course");
 }