private void SaveExeruciseSerie()
        {
            DateTime testCheckDate = DateTime.Now;
            double   time          = (testEndDate - testStartDate).TotalSeconds;
            double   timeCheck     = (testCheckDate - testEndDate).TotalSeconds;

            ExerciseAttemptAssociationsClosed attempt = new ExerciseAttemptAssociationsClosed(testStartDate, testEndDate, testCheckDate, time, timeCheck);

            foreach (AssociationQuestion item in this.associationQuestions)
            {
                attempt.Questions.Add(item);
            }

            if (this.TestType == TrainTypeAssociationClosed.WordDictionary)
            {
                attempt.FromDictionary = true;
            }
            else
            {
                attempt.ListName = this.SelectedClosedList.Name;
            }

            ExerciseSerie currentSerie = new ExerciseSerie(new ExerciseType(TrainType.ClosedAssociations));

            currentSerie.Attempts.Add(attempt);

            LogExercise.AddNewExerciseSerie(currentSerie);
            LogExercise.SaveProgramsLogs();

            attempt.CreateTestTextFile();
        }
Exemplo n.º 2
0
        private void SaveExeruciseSerie()
        {
            DateTime testCheckDate = DateTime.Now;
            double   time          = (testEndDate - testStartDate).TotalSeconds;
            double   timeCheck     = (testCheckDate - testEndDate).TotalSeconds;

            ExerciseAttemptAssociationsСonsecutive attempt = new ExerciseAttemptAssociationsСonsecutive(testStartDate, testEndDate, testCheckDate, time, timeCheck);

            attempt.WithRepeats = this.WithRepeats;
            attempt.WithNumber  = this.WithNumber;
            if (attempt.WithNumber)
            {
                attempt.Random = this.RandomOrder;
            }

            foreach (AssociationQuestion item in this.associationQuestions)
            {
                attempt.Questions.Add(item);
            }

            ExerciseSerie currentSerie = new ExerciseSerie(new ExerciseType(TrainType.ConsecutiveAssociations));

            currentSerie.Attempts.Add(attempt);

            LogExercise.AddNewExerciseSerie(currentSerie);
            LogExercise.SaveProgramsLogs();

            attempt.CreateTestTextFile();
        }
Exemplo n.º 3
0
        public TrainMachineStrup()
        {
            timerNextQuestion          = new Timer();
            timerNextQuestion.Interval = 1000;
            timerNextQuestion.Tick    += new EventHandler(timerNextQuestion_Tick);

            currentSerie = new ExerciseSerie(GetTrainType());
        }
        private void UpdateExerciseSerie()
        {
            ExerciseType type = GetTrainType();

            if (!currentSerie.Type.Equals(type))
            {
                SaveExeruciseSerie();

                currentSerie = new ExerciseSerie(type);
            }
        }
        public TrainMachineNet()
        {
            timerHide          = new Timer();
            timerHide.Interval = 1000;
            timerHide.Tick    += new EventHandler(timerHide_Tick);

            timerPause          = new Timer();
            timerPause.Interval = 400;
            timerPause.Tick    += new EventHandler(timerPause_Tick);

            currentSerie = new ExerciseSerie(GetTrainType());
        }
        public TrainMachineImpression()
        {
            timerTest          = new Timer();
            timerTest.Interval = 1000;
            timerTest.Tick    += new EventHandler(timerTest_Tick);

            timerPause          = new Timer();
            timerPause.Interval = 800;
            timerPause.Tick    += new EventHandler(timerPause_Tick);

            currentSerie = new ExerciseSerie(GetTrainType());
        }
Exemplo n.º 7
0
        public void SaveExeruciseSerie()
        {
            if (status != MachineStatus.NotStarted)
            {
                this.Stop();
            }

            if (currentSerie.Attempts.Count > 0)
            {
                LogExercise.AddNewExerciseSerie(currentSerie);
                LogExercise.SaveProgramsLogs();

                currentSerie = new ExerciseSerie(new ExerciseTypeInterruptionReading());
            }
        }
        public TrainMachineDate()
        {
            timerHide          = new Timer();
            timerHide.Interval = 1000;
            timerHide.Tick    += new EventHandler(timerHide_Tick);

            timerCheckAnswer          = new Timer();
            timerCheckAnswer.Interval = 20000;
            timerCheckAnswer.Tick    += new EventHandler(timerCheckAnswer_Tick);

            timerPause          = new Timer();
            timerPause.Interval = 800;
            timerPause.Tick    += new EventHandler(timerPause_Tick);

            currentSerie = new ExerciseSerie(GetTrainType());
        }
        public TrainMachineNumberGenerator()
        {
            timerHideAndNextQuestion          = new Timer();
            timerHideAndNextQuestion.Interval = 1000;
            timerHideAndNextQuestion.Tick    += new EventHandler(timerHideAndNextQuestion_Tick);

            timerCheckAnswer          = new Timer();
            timerCheckAnswer.Interval = 20000;
            timerCheckAnswer.Tick    += new EventHandler(timerCheckAnswer_Tick);

            timerPause          = new Timer();
            timerPause.Interval = 800;
            timerPause.Tick    += new EventHandler(timerPause_Tick);

            currentSerie = new ExerciseSerie(GetTrainType());
        }
Exemplo n.º 10
0
        public TrainMachineRecentMemory()
        {
            timerNextSymbol          = new Timer();
            timerNextSymbol.Interval = 1000;
            timerNextSymbol.Tick    += new EventHandler(timerNextSymbol_Tick);

            timerCheckAnswer          = new Timer();
            timerCheckAnswer.Interval = 20000;
            timerCheckAnswer.Tick    += new EventHandler(timerCheckAnswer_Tick);

            timerPause          = new Timer();
            timerPause.Interval = 800;
            timerPause.Tick    += new EventHandler(timerPause_Tick);

            currentSerie = new ExerciseSerie(GetTrainType());
        }
 public TrainMachineSecondArrow()
 {
     currentSerie = new ExerciseSerie(new ExerciseTypeSecondArrowAttention());
 }