private void button1_Click(object sender, EventArgs e)
 {
     AnswerForm answerForm = new AnswerForm();
     if (answerForm.ShowDialog() == DialogResult.OK)
     {
         answersList.Items.Add(answerForm.Answer);
     }
 }
 private void button2_Click(object sender, EventArgs e)
 {
     Answer answer = answersList.SelectedItem as Answer;
     if (answer == null)
     {
         return;
     }
     AnswerForm answerForm = new AnswerForm(answer);
     if (answerForm.ShowDialog() == DialogResult.OK)
     {
         answersList.Items.Remove(answersList.SelectedItem);
         answersList.Items.Add(answerForm.Answer);
     }
 }