/// <summary> /// Handles the click event of the button /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Button_Click(object sender, RoutedEventArgs e) { var newW = new AddFeed(); newW.ShowDialog(); if (newW.DialogResult.HasValue && newW.DialogResult.Value) { loadNewSearchString = true; LoadComboBox(); ComboBox.SelectedIndex = ComboBox.Items.Count - 1; } }