예제 #1
0
        private void add_lec1_button_Click(object sender, EventArgs e)
        {
            tempCon[4]  = selectedcourse.getID().ToString();
            tempCon[5]  = "0";
            tempCon[6]  = "Lecture";
            tempCon[7]  = Class_lec1_comboBox.SelectedItem.ToString();
            tempCon[8]  = selectedcourse.getName();
            tempCon[9]  = "None";
            tempCon[10] = selectedcourse.getYear().ToString();
            tempCon[11] = selectedcourse.getSemester().ToString();
            constraints toinit = new constraints(tempCon);

            allconstraintsobjects.Add(toinit);
            (this.Owner as Schedule_Board).initialise_new_event(toinit);
            toinit.addthistodb();
            MessageBox.Show("meaniyen");
            if (this.selectedcourse.get_amount_of_lecture_sessions() == 2)
            {
                Lec2Panel.Show();
                Lec2Panel.Enabled = true;
            }
            else
            {
                prapanel.Enabled = true;
            }
            lec1panel.Enabled = false;
        }
예제 #2
0
        private void add_pra_Click(object sender, EventArgs e)
        {
            tempConPra[4]  = selectedcourse.getID().ToString();
            tempConPra[5]  = "0";
            tempConPra[6]  = pratype.SelectedItem.ToString();
            tempConPra[8]  = selectedcourse.getName();
            tempConPra[9]  = "None";
            tempConPra[10] = selectedcourse.getYear().ToString();
            tempConPra[11] = selectedcourse.getSemester().ToString();
            constraints toinit = new constraints(tempConPra);

            (this.Owner as Schedule_Board).initialise_new_event(toinit);
            toinit.addthistodb();
            MessageBox.Show("meaniyen");
            this.Close();
        }
예제 #3
0
        private void lec2_add_Click(object sender, EventArgs e)
        {
            tempcon2[4]  = selectedcourse.getID().ToString();
            tempcon2[5]  = "0";
            tempcon2[6]  = "Lecture";
            tempcon2[7]  = Class_lec1_comboBox.SelectedItem.ToString();
            tempcon2[8]  = selectedcourse.getName();
            tempcon2[9]  = "None";
            tempcon2[10] = selectedcourse.getYear().ToString();
            tempcon2[11] = selectedcourse.getSemester().ToString();
            constraints toinit = new constraints(tempcon2);

            allconstraintsobjects.Add(toinit);
            (this.Owner as Schedule_Board).initialise_new_event(toinit);
            toinit.addthistodb();
            MessageBox.Show("meaniyen");
            prapanel.Enabled  = true;
            prapanel.Visible  = true;
            Lec2Panel.Enabled = false;
        }