public override void onSessionCreated(Session session) { this.rollcallSession = RollcallSession.create(session); //courseId.Text = rollcallSession.subjectNumber; courseName.Text = rollcallSession.name + " / " + rollcallSession.subjectNumber; refreshCountLabel(rollcallSession); studentsTablePanel.loadSessionStudents(rollcallSession); rollcallView.stopServerAndResetStates(); }
public void loadSessionStudents(RollcallSession chosenSession) { clearStudents(); foreach (var student in chosenSession.getCurrentStudents()) { addStudent(student, chosenSession.isSigned(student) ? RollcallStudent.State.SIGNED : RollcallStudent.State.UNSIGNED); } alterRowAndColumnCount(); }
private void refreshCountLabel(RollcallSession rollcallSession) { CountSignInStudentsLabel.Text = rollcallSession.getSignedStudents().Count.ToString() + " / " + rollcallSession.getRollcallStudents().Count.ToString() + " 人數"; }