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); }
private void calAllStudentsScore() { ScoreCal cal = ScoreCal.createForCourse(courseRef); foreach (Student stu in SelectedStuList.allStudents()) { cal.calStudentScore(stu); } GlobalStation.shareInstance.librarySave(delegate() { mainGrid_RefreshAllScore(); }, null); }