Example #1
0
 public void SearchQueryFile()
 {
     if (postQuery == null)
     {
         postQuery = new PostQueryEngine(ref pq.indexer);
     }
     if (Path4 != null && Directory.Exists(Path4))
     {
         if (pq.indexer.mainTermDictionary.Count != 0)
         {
             postQuery.queriesFile(Path3, SelectedLanguage, Path4 + "\\Results.txt");
         }
         else
         {
             System.Windows.MessageBox.Show("Dictionary not loaded. Please load a dictionary before search a query.");
         }
     }
     else
     {
         System.Windows.MessageBox.Show("Invalid save-to path.");
     }
 }
Example #2
0
 public void Search()
 {
     if (postQuery == null)
     {
         postQuery = new PostQueryEngine(ref pq.indexer);
     }
     if (Path4 == null || (Directory.Exists(Path4) || Path4.Length == 0))
     {
         if (pq.indexer.mainTermDictionary.Count != 0)
         {
             postQuery.userManualSingleQuery(Query, selectedLanguage, Path4 + "\\Results.txt");
         }
         else
         {
             System.Windows.MessageBox.Show("Dictionary not loaded. Please load a dictionary before search a query.");
         }
     }
     else
     {
         System.Windows.MessageBox.Show("Invalid save-to path.");
     }
 }