Ejemplo n.º 1
0
 public ModuleCodeQView(Grid grid)
 {
     InitializeComponent();
     _grid                  = grid;
     StaertTest.Click      += StaertTest_Click;
     _generateProcess       = new GenerateProcess();
     _answerCheker          = new AnswerCheker();
     _questionEntities      = _generateProcess.GetQuestions(QuestionType.ModuleCodeQ).Data;
     _currentQuestionEntity = _questionEntities.FirstOrDefault(p => p.StateType == StateType.Default);
     DescriptionText.Text   = _currentQuestionEntity?.Description;
     QuestionText.Text      = _currentQuestionEntity?.Question.Value;
     Number.Text            = number.ToString();
     Correct.Text           = $"{_questionEntities.Count(p => p.StateType == StateType.Corect)}/{_questionEntities.Count}";
 }
 public EllieasCoderView(Grid grid)
 {
     InitializeComponent();
     _grid                  = grid;
     _textAnswer            = new List <TextBox>();
     StaertTest.Click      += StaertTest_Click;
     _generateProcess       = new GenerateProcess();
     _answerCheker          = new AnswerCheker();
     _questionEntities      = _generateProcess.GetQuestions(QuestionType.Ellieas).Data;
     _currentQuestionEntity = _questionEntities.FirstOrDefault(p => p.StateType == StateType.Default);
     DescriptionText.Text   = _currentQuestionEntity?.Description;
     InitMatrix();
     Number.Text  = number.ToString();
     Correct.Text = $"{_questionEntities.Count(p => p.StateType == StateType.Corect)}/{_questionEntities.Count}";
 }