예제 #1
0
 private void Set_Student(Student stu)
 {
     student         = stu;
     stuDB           = new StudentDB();
     students_lst    = new List <Student>();
     lbl_Update.Text = "עדכון סטודנט";
 }
예제 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     pnl_Update_Main.Visible = false;
     pnl_User_Select.Visible = false;
     lecturer = null;
     tutor    = null;
     student  = null;
     lecDB    = null;
     tutDB    = null;
     stuDB    = null;
 }
예제 #3
0
        private void Update_All()
        {
            appealsDB.Update_After_Lecturer_Review(CONFIRM, appeals[lstB_Appeals_List.SelectedIndex]);

            StudentsGradesDB Grades        = new StudentsGradesDB();
            StudentDB        UpdateStudent = new StudentDB();

            Grades.UpdateTime(students[lstB_Appeals_List.SelectedIndex].getID(), appeals[lstB_Appeals_List.SelectedIndex].Get_Course_Name(), Convert.ToInt32(txtB_New_Grade.Text));
            float NewAverage = Grades.GetStudentAverage(students[lstB_Appeals_List.SelectedIndex].getID());

            UpdateStudent.UpdateAverage(students[lstB_Appeals_List.SelectedIndex].getID(), NewAverage);

            lstB_Appeals_List.Items.Clear();
            lstB_Appeals_List.ResetText();
            Initialise_Again();
        }
예제 #4
0
        private void Load_Secretary_List()
        {
            int size = 0;

            lecDB = null;
            tutDB = null;
            stuDB = null;

            secDB           = new SecretarysDB();
            secreatarys_lst = secDB.Get_All_Secretary();
            size            = secreatarys_lst.Count();
            for (int i = 0; i < size; i++)
            {
                cbo_User_Select_ID.Items.Add(secreatarys_lst[i].getID());
            }
        }
예제 #5
0
        private void Load_Tutor_List()
        {
            int size = 0;

            lecDB = null;
            stuDB = null;
            secDB = null;

            tutDB      = new TutorsDB();
            tutors_lst = tutDB.Get_All_Tutors();
            size       = tutors_lst.Count();
            for (int i = 0; i < size; i++)
            {
                cbo_User_Select_ID.Items.Add(tutors_lst[i].getID());
            }
        }
예제 #6
0
        private void Load_Lecturer_List()
        {
            int size = 0;

            tutDB = null;
            stuDB = null;
            secDB = null;

            lecDB         = new LecturersDB();
            lecturers_lst = lecDB.Get_All_Lecturers();
            size          = lecturers_lst.Count();
            for (int i = 0; i < size; i++)
            {
                cbo_User_Select_ID.Items.Add(lecturers_lst[i].getID());
            }
        }
예제 #7
0
        private void btn_Lecturer_Main_Back_Click(object sender, EventArgs e)
        {
            if (lecturer != null)
            {
                lecturer = null;
                lecDB    = null;
            }
            else if (tutor != null)
            {
                tutor = null;
                tutDB = null;
            }
            else if (student != null)
            {
                student = null;
                stuDB   = null;
            }
            else if (secretary != null && admin == false)
            {
                secretary = null;
                secDB     = null;
            }

            if (admin)
            {
                pnl_User_Select.Visible = true;
                txtB_User_Select_LName.Clear();
                txtB_User_Select_LName.ResetText();
                txtB_User_Select_PName.Clear();
                txtB_User_Select_PName.ResetText();
                cbo_User_Select_ID.ResetText();
                cbo_User_Select_ID.Items.Clear();

                Load_Users();
            }
        }