private void AddNewQuestionToolStripMenuItem_Click(object sender, EventArgs e) { AddNewQuestion form = new AddNewQuestion(); form.ShowDialog(); using (ForumContainer container = new ForumContainer()) { toolStripQuestionListBox.Items.AddRange( QuestIdentification.questIdentifications(container.QuestionSet .Where(y => y.LanguageLanguageId == this.language.LanguageId)) .Select(x => x.text).ToArray()); } }
/// <summary> /// Добавление нового вопроса /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AddNewQuestion_Click(object sender, EventArgs e) { AddNewQuestion addNeQuestion = new AddNewQuestion(); addNeQuestion.ShowDialog(); }