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(); }