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