private void button1_Click_1(object sender, EventArgs e)
 {
     if (comboBox1.Text != "")
     {
         if (comboBox3.Text != "")
         {
             if (index < listPanel.Count - 1)
             {
                 listPanel[++index].BringToFront();
             }
             textBox1.Text = "הקלד/י ציון בין 0 ל 100";
             CourseData    = comboBox1.Text;
             char Day  = CourseData[CourseData.IndexOf(":") + 2];
             int  Hour = Convert.ToInt32(CourseData.Substring(CourseData.IndexOf("-") + 1));
             ID         = Active.GetIDCoursesByLecOrTut(ID, Day, Hour, FullName);
             CourseName = CourseData.Substring(0, CourseData.IndexOf(":"));
             StudentsList.GetStudentsInCourseCombo(comboBox10, ID, CourseName);
         }
         else
         {
             MessageBox.Show("אנא בחר/י גודל פקטור עבור המבחן אם אין בחר/י 0");
         }
     }
     else
     {
         MessageBox.Show("לא נבחר קורס");
     }
 }
Esempio n. 2
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            CourseData = comboBox1.Text;
            char Day  = CourseData[CourseData.IndexOf(":") + 2];
            int  Hour = Convert.ToInt32(CourseData.Substring(CourseData.IndexOf("-") + 1));

            ID = Active.GetIDCoursesByLecOrTut(ID, Day, Hour, FullName);
        }