private void AdvancedSearch_Click(object sender, RoutedEventArgs e) { App app = (App)Application.Current; AdvancedSearchPage asp = new AdvancedSearchPage(); if (RecordsSearchFunctions.isContentSearchable(SearchContentTextBox.Text) == true) { asp.AllOfTheWords_Content.Text = SearchContentTextBox.Text.TrimStart().TrimEnd(); Dispatcher.BeginInvoke(() => { asp.AllOfTheWords_Content.SelectAll(); asp.AllOfTheWords_Content.Focus(); }); } App.Navigate(asp); }
private void SearchButton_Click(object sender, RoutedEventArgs e) { if (RecordsSearchFunctions.cannotStartSearchYet == false && RecordsSearchFunctions.isContentSearchable(SearchContentTextBox.Text) == true) basicSearchFunction(SearchContentTextBox.Text); }
void SearchContentTextBox_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Enter && RecordsSearchFunctions.cannotStartSearchYet == false && RecordsSearchFunctions.isContentSearchable(SearchContentTextBox.Text) == true) { basicSearchFunction(SearchContentTextBox.Text); } }