Exemplo n.º 1
0
        public static Question ShowAddQuestionDialog()
        {
            var form = new FormAddQuestion();

            form.ShowDialog();
            return(form.m_question);
        }
Exemplo n.º 2
0
        private void m_btnAddQuestion_Click(object sender, EventArgs e)
        {
            var question = FormAddQuestion.ShowAddQuestionDialog();

            if (question == null)
            {
                return;
            }
            m_assessment.AddQuestion(question);
            UpdateAssessment();
            SaveAssessment();
        }