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