Example #1
0
        private void calTheStudentScore()
        {
            ScoreCal cal = ScoreCal.createForCourse(courseRef);
            Student  stu = SelectedStuList[getRowValue(mainGrid.CurrentRow.Index, mainGridCellIndex.id)];

            cal.calStudentScore(stu);
            GlobalStation.shareInstance.librarySave(delegate() {
                mainGrid_RefreshAllScore();
            }, null);
        }
Example #2
0
        private void calAllStudentsScore()
        {
            ScoreCal cal = ScoreCal.createForCourse(courseRef);

            foreach (Student stu in SelectedStuList.allStudents())
            {
                cal.calStudentScore(stu);
            }
            GlobalStation.shareInstance.librarySave(delegate() {
                mainGrid_RefreshAllScore();
            }, null);
        }