public virtual void Stop() { testCount = 0; timerPause.Stop(); timerHideAndNextQuestion.Stop(); timerCheckAnswer.Stop(); if (status != MachineStatus.NotStarted) { if (status == MachineStatus.AutoShowing) { DateTime dateEnd = DateTime.Now; double time = (dateEnd - this.testStartDate).TotalSeconds; ExerciseAttempt newAttept = new ExerciseAttempt(TrainType.NumberGenerator, this.testStartDate, time, false, string.Empty, string.Empty, true, string.Empty); newAttept.DateEnd = dateEnd; newAttept.TestCount = testCount; currentSerie.Attempts.Add(newAttept); } status = MachineStatus.NotStarted; OnTrainStoped(new EventArgs()); } }
public virtual void Stop() { if (status != MachineStatus.NotStarted) { DateTime dateEnd = DateTime.Now; double time = (dateEnd - dateStart).TotalSeconds; ExerciseAttempt tmp = new ExerciseAttempt(TrainType.SecondArrowAttention, dateStart, time, false, string.Empty, string.Empty, true, string.Empty); tmp.DateEnd = dateEnd; currentSerie.Attempts.Add(tmp); status = MachineStatus.NotStarted; OnTrainStoped(new EventArgs()); } }
public virtual void Stop() { timerPause.Stop(); timerNextBook.Stop(); if (status != MachineStatus.NotStarted) { status = MachineStatus.NotStarted; OnTrainStoped(new EventArgs()); DateTime dateEnd = DateTime.Now; double time = (dateEnd - testStartTime).TotalSeconds; ExerciseAttempt tmp = new ExerciseAttempt(TrainType.InterruptionReading, testStartTime, time, false, string.Empty, string.Empty, true, string.Empty); tmp.DateEnd = dateEnd; currentSerie.Attempts.Add(tmp); } }
public void Stop() { timerNextQuestion.Stop(); if (status != MachineStatus.NotStarted) { DateTime testEndDate = DateTime.Now; double time = (testEndDate - testStartTime).TotalSeconds; ExerciseAttempt tmp = new ExerciseAttempt(TrainType.Strup, testStartTime, time, false, string.Empty, string.Empty, true, string.Empty); tmp.DateEnd = testEndDate; tmp.TestCount = testCount; currentSerie.Attempts.Add(tmp); status = MachineStatus.NotStarted; OnTrainStoped(new EventArgs()); } }