/// <summary> /// Loads the form to edit the question that the user requested /// </summary> private void LoadEditQuestionForm(int questionId) { EditQuestionWindow editQuestion = new EditQuestionWindow(_testId, questionId); editQuestion.Owner = this; editQuestion.Effect = Utility.DropShadowEffect; Effect = Utility.Blur; editQuestion.ShowDialog(); RefreshQuestions(); }
/// <summary> /// Displays a dialog to edit / create a new question /// </summary> private void AddQuestion_Click(object sender, RoutedEventArgs e) { EditQuestionWindow editQuestion = new EditQuestionWindow(_testId) { Owner = this, }; Effect = Utility.Blur; Opacity = 0.5; editQuestion.ShowDialog(); RefreshQuestions(); }