Esempio n. 1
0
        private void OnAddClick(object sender, EventArgs e)
        {
            var editQuestion = new EditQuestion();

            //editQuestion.ShowDialog();
            _questionsManager.Add(editQuestion.ShowDialog());
            UpdateQuestionsList();
        }
Esempio n. 2
0
        private void OnEditClick(object sender, EventArgs e)
        {
            var editQuestion = new EditQuestion(_questionsManager[questionsList.SelectedIndex]);

            _questionsManager[questionsList.SelectedIndex] = editQuestion.ShowDialog();
        }