public void restart() { questions.Clear(); questions = DataBaseUtil.LoadQuestions(); q1 = null; q2 = null; lastAnsweredQuestion = null; numOfAnswers = 0; play(); }
public Form1() { InitializeComponent(); questions = DataBaseUtil.LoadQuestions(); label1.AutoSize = true; label2.AutoSize = true; yesButton.Click += yesButton_Click; NoButton.Click += NoButton_Click; restart(); }