static void Main() { FileHandler file = new FileHandler(); Dictionary <string, string> questionsAndAnswers = file.GetDataFromFile(); QuestionRandomizer randomizer = new QuestionRandomizer(questionsAndAnswers); qAndA = QuestionRandomizer.ChooseQuestion(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); }
private void setNextQuestion() { Program.qAndA = QuestionRandomizer.ChooseQuestion(); questionLabel.Text = Program.qAndA.Key; answerLabel.Text = string.Empty; }