private void editAnswer_Click(object sender, EventArgs e) { var form = new SubQuestionAnswer(answer, answerDt, answer.SelectedIndex, true); form.Text = "Answer"; form.ShowDialog(); }
private void addAnswer_Click(object sender, EventArgs e) { var form = new SubQuestionAnswer(answer, answerDt, -1, true); form.Text = "Answer"; form.ShowDialog(); if (answer.Items.Count > 0) { answer.Enabled = true; } }