private bool ConfigureBooleanChoice() { Random rand = new Random(); int rng = rand.Next(0, BooleanPrompts.Count); String prompt = BooleanPrompts[rng]; bool answer = BooleanAnswers[rng]; //Drop choice from list BooleanPrompts.RemoveAt(rng); BooleanAnswers.RemoveAt(rng); BasicQuestion newQuest = new BasicQuestion(prompt, answer); newQuest.ShowDialog(); return(newQuest.result); }
private bool ConfigureMultipleChoice() { Random rand = new Random(); int rng = rand.Next(0, ChoicePrompts.Count); String[] array = { ChoicePrompts[rng], ChoiceCorrectAnswers[rng], ChoiceFalse1Answers[rng], ChoiceFalse2Answers[rng], ChoiceFalse3Answers[rng] }; //Drop choice from list ChoicePrompts.RemoveAt(rng); ChoiceCorrectAnswers.RemoveAt(rng); ChoiceFalse1Answers.RemoveAt(rng); ChoiceFalse2Answers.RemoveAt(rng); ChoiceFalse3Answers.RemoveAt(rng); BasicQuestion newQuest = new BasicQuestion(array); newQuest.ShowDialog(); return(newQuest.result); }