public void basicSearchFunction(string content) { RecordsSearchFunctions.cannotStartSearchYet = true; RecordsSearchFunctions sf = new RecordsSearchFunctions(); this.SearchButton.IsEnabled = false; sf.BasicSearch_Using_WCFService(SearchContentTextBox.Text, ConstantCollection.startPosition, ConstantCollection.maxRecords); }
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 HyperlinkButton_Click(object sender, RoutedEventArgs e) { TreeViewItem tvi = TreeView_SBAVocabulary.GetSelectedContainer(); SBAVocabularyTree current = tvi.Header as SBAVocabularyTree; SBAVocabulary vocabulary = SBAVocabularyTree.createSBAVocabularyFromTreeNode(current); HyperlinkButton button = sender as HyperlinkButton; string id = button.Tag as string; RecordsSearchFunctions.cannotStartSearchYet = true; RecordsSearchFunctions sf = new RecordsSearchFunctions(); sf.BrowseBySBA_Using_WCFService(vocabulary, ConstantCollection.startPosition, ConstantCollection.maxRecords); }
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); } }