コード例 #1
0
        private void OnAddClick(object sender, EventArgs e)
        {
            var editQuestion = new EditQuestion();

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

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