private void buttonAddAnswer_Click(object sender, EventArgs e) { if (flowLayoutPanel.Controls.Count < 8) { AnswerObject answer = new AnswerObject(); flowLayoutPanel.Controls.Add(answer); } }
public void ClearForm() { flowLayoutPanel.Controls.Clear(); for (int i = 0; i < 4; i++) { AnswerObject answer = new AnswerObject(); flowLayoutPanel.Controls.Add(answer); } QuestionText = ""; Points = 1; }