public void BrowseBySBA_Using_WCFService(SBAVocabulary vocabulary, string startPosition, string maxRecords) { contentToSearching = ""; vocabularyObject = vocabulary; maxRecordsExpectToGet = int.Parse(maxRecords); initialCatalogStutus(); foreach (string catalogURL in catalogURLList) { cswQueryServiceClient.getRecords_QuickSearchBySBAAsync(vocabulary, ConstantCollection.startPosition, ConstantCollection.firstTimeSearchNum, catalogURL, ConstantCollection.queryServicePerformanceScoreAtServerSide && ConstantCollection.isQueryServicePerformanceScore, ConstantCollection.calculateRelevanceAtServerSide && ConstantCollection.isCalculateRelevance); } time_BeforeSearch = DateTime.Now; }
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); }
public static SBAVocabulary createSBAVocabularyFromTreeNode(SBAVocabularyTree vt) { SBAVocabulary root = new SBAVocabulary(); root.Name = vt.Name; root.isSelected = vt.isSelected; root.SBAVocabularyID = vt.SBAVocabularyID; if (vt.Children != null) { root.Children = new ObservableCollection <SBAVocabulary>(); foreach (SBAVocabularyTree rtt in vt.Children) { SBAVocabulary rt = createSBAVocabularyFromTreeNode(rtt); root.Children.Add(rt); } } return(root); }