Beispiel #1
0
 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);
 }
Beispiel #2
0
 private void SearchButton_Click(object sender, RoutedEventArgs e)
 {
     if (RecordsSearchFunctions.cannotStartSearchYet == false && RecordsSearchFunctions.isContentSearchable(SearchContentTextBox.Text) == true)
         basicSearchFunction(SearchContentTextBox.Text);
 }
Beispiel #3
0
 void SearchContentTextBox_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter && RecordsSearchFunctions.cannotStartSearchYet == false && RecordsSearchFunctions.isContentSearchable(SearchContentTextBox.Text) == true)
     {
         basicSearchFunction(SearchContentTextBox.Text);
     }
 }