public void Play() { Quiz currentQuiz; List <Question> questions; try { currentQuiz = _quizViewService.SelectQuiz("Select quiz!"); questions = currentQuiz.Questions; } catch (Exception ex) { Console.WriteLine(ex.Message); Console.ReadLine(); return; } foreach (var question in questions) { Console.Clear(); Console.WriteLine(question.Title + "\n"); _quizViewService.SelectAnswer(question); } _quizViewService.ShowUserAnswers(questions); Console.ReadLine(); }
public void Start() { try { quizToEdit = _quizViewService.SelectQuiz("Select quiz to edit!"); EditMenu(); } catch (Exception ex) { Console.WriteLine(ex.Message); Console.ReadLine(); return; } }