public void StartSearch(object searchRun) { try { SearchRun curRun = (SearchRun)searchRun; //if (!curRun.ForceSearch) //{ // lnk = m_SemanticHelper. GetSemanticLinkFromDB(sWord); // if (lnk != null) // { // lock (m_dbHelper) // { // //lnk.Granny = new RegistryWord(m_dbHelper.GetWord(sParent)); // } // if (lnk.ParentWord.Status != WordStatus.eNotProcessed) // return lnk; // else // UpdateWordStatus(lnk.ParentWord, WordStatus.eInProgress); // } //} //m_SemanticHelper.UpdateWordStatus(curRun.WordLink.ParentWord, WordStatus.eNotProcessed);//WordStatus.eInProgress); //OnExplProcessed(new ExplProcessedEventArgs(curRun, false)); if (curRun.DeepSearch <= 0) { //if( curRun.WordLink.ParentWord.Status //m_SemanticHelper.UpdateWordStatus(curRun.WordLink.ParentWord, WordStatus.eNotProcessed); //OnExplProcessed(new ExplProcessedEventArgs(curRun, true)); } else { Search(curRun); m_SemanticHelper.UpdateWordStatus(curRun.WordLink.ParentWord, WordStatus.eCompleted); OnExplProcessed(new ExplProcessedEventArgs(curRun, false)); } } catch (Exception ex) { MessageBox.Show(string.Format("{0}\n{1}", "CLientLogic.StartSearch", ex.Message)); } }
private void btnSave_Click(object sender, RoutedEventArgs e) { SemanticHelper helper = new SemanticHelper(); helper.UpdateRelations(m_Link); m_Link.ParentWord.Reviewed = true; helper.UpdateWordStatus(m_Link.ParentWord, m_Link.ParentWord.Status); DialogResult = true; Close(); }
public void UpdateWordStatusTest() { SemanticHelper target = new SemanticHelper(); // TODO: Initialize to an appropriate value RegistryWord aWord = null; // TODO: Initialize to an appropriate value WordStatus eStatus = new WordStatus(); // TODO: Initialize to an appropriate value RegistryWord expected = null; // TODO: Initialize to an appropriate value RegistryWord actual; actual = target.UpdateWordStatus(aWord, eStatus); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }