//добавить вопрос из бд private void AddQuestionFromDb_Click(object sender, RoutedEventArgs e) { try { AddQuestions addQuestions = new AddQuestions(); addQuestions.ShowDialog(); UpdateQuestionList(); } catch { MessageBox.Show("Add question error", "", MessageBoxButton.OK, MessageBoxImage.Error); } }
//добавить вопрос из бд private void AddQuestionFromDb_Click(object sender, RoutedEventArgs e) { try { AddQuestions addQuestions = new AddQuestions(); addQuestions.ShowDialog(); UpdateQuestionList(); } catch { MessageBox.Show((string)Application.Current.Resources["addQuestError"], "", MessageBoxButton.OK, MessageBoxImage.Error); } }