Пример #1
0
        private void btnAddAnswer_Click(object sender, EventArgs e)
        {
            frmAnswer a = new frmAnswer(currentQuestion.IdQuestion);

            a.ShowDialog();
            if (a.currentAnswer.IdAnswer > 0)
            {
                db.AddAnswerToQuestion(currentQuestion.IdQuestion, a.currentAnswer.IdAnswer);
            }

            RefreshData();

            List <Answer> answers = db.GetAnswersOfAQuestion(currentQuestion.IdQuestion);
        }