public void register(IHomeWorkModel model, int studentId) { this.model = model; this.studentId = studentId; model.addWatcher(viewUpdated, DataKeys.getUserKey(studentId)); }
public void register(IHomeWorkModel model, ModelUser user, string classRoomName) { this.model = model; this.user = user; this.classRoomName = classRoomName; model.addWatcher(viewUpdated, this.getUserDataKey()); }
public void register(IHomeWorkModel model, int teacherId) { this.model = model; this.teacherId = teacherId; model.addWatcher(viewUpdated, this.getTeacherDataKey()); }