/// <summary> /// Called when the settings button is clicked /// </summary> /// <param name="sender">event sender</param> /// <param name="e">event arguments</param> private void Settings_Click(object sender, RoutedEventArgs e) { SettingsDialog settings = new SettingsDialog(); settings.Owner = this; settings.ShowDialog(); if (settings.DialogResult == true) { this.viewModel.HelpBuilder.AddTextToParagraphBuilder(); this.viewModel.Search(); } }