public ExerciseRecorder(IRecorder recorder, int exerciseId, string title, ISpeedProgress speedProgress, IPracticeTimeProgress practiceTimeProgress, IManualProgress manualProgress) { ExerciseId = exerciseId; Title = title; this.recorder = recorder ?? throw new ArgumentNullException("Recorder must be specified."); this.speedProgress = speedProgress ?? throw new ArgumentNullException("Progress element must be specified."); this.practiceTimeProgress = practiceTimeProgress ?? throw new ArgumentNullException("Progress element must be specified."); this.manualProgress = manualProgress ?? throw new ArgumentNullException("Progress element must be specified."); this.recorder.RecordingStatusChanged += Recorder_RecordingStatusChanged; this.recorder.Tick += TickEventFired; }
public TimeSlotExerciseRecorder(IRecorder recorder, int exerciseId, string title, ISpeedProgress speedProgress, IPracticeTimeProgress practiceTimeProgress, IManualProgress manualProgress, int assignedTime) : base(recorder, exerciseId, title, speedProgress, practiceTimeProgress, manualProgress) { AssignedSeconds = assignedTime; }