示例#1
0
        private void editAnswer_Click(object sender, EventArgs e)
        {
            var form = new SubQuestionAnswer(answer, answerDt, answer.SelectedIndex, true);

            form.Text = "Answer";
            form.ShowDialog();
        }
示例#2
0
        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;
            }
        }