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