示例#1
0
 public void DeletePertainer(WordSense existingPertainer)
 {
     if (WordNetData.Context.DeletePertainymyRelation(existingPertainer.SynsetID, existingPertainer.WordNumber, SynsetID, WordNumber).Equals(0))
     {
         SendPropertyChanged("Pertainers");
         existingPertainer.SendPropertyChanged("PertainsTo");
     }
 }
示例#2
0
 public void DeleteSeeAlso(WordSense existingSeeAlso)
 {
     if (WordNetData.Context.DeleteSeeAlsoWordSenseRelation(existingSeeAlso.SynsetID, existingSeeAlso.WordNumber, SynsetID, WordNumber).Equals(0))
     {
         SendPropertyChanged("SeeAlso");
         existingSeeAlso.SendPropertyChanged("SeeAlso");
     }
 }
示例#3
0
 public void AddPertainer(WordSense newPertainer)
 {
     if (WordNetData.Context.AddPertainymyRelation(newPertainer.SynsetID, newPertainer.WordNumber, SynsetID, WordNumber).Equals(0))
     {
         SendPropertyChanged("Pertainers");
         newPertainer.SendPropertyChanged("PertainsTo");
     }
 }
示例#4
0
 public void DeleteDerivation(WordSense existingDerivation)
 {
     if (WordNetData.Context.DeleteDerivationRelation(existingDerivation.SynsetID, existingDerivation.WordNumber, SynsetID, WordNumber).Equals(0))
     {
         SendPropertyChanged("Derivations");
         existingDerivation.SendPropertyChanged("Derivations");
     }
 }
示例#5
0
 public void AddSeeAlso(WordSense newSeeAlso)
 {
     if (WordNetData.Context.AddSeeAlsoWordSenseRelation(newSeeAlso.SynsetID, newSeeAlso.WordNumber, SynsetID, WordNumber).Equals(0))
     {
         SendPropertyChanged("SeeAlso");
         newSeeAlso.SendPropertyChanged("SeeAlso");
     }
 }
示例#6
0
 public void AddDerivation(WordSense newDerivation)
 {
     if (WordNetData.Context.AddDerivationRelation(newDerivation.SynsetID, newDerivation.WordNumber, SynsetID, WordNumber).Equals(0))
     {
         SendPropertyChanged("Derivations");
         newDerivation.SendPropertyChanged("Derivations");
     }
 }
示例#7
0
 public void DeleteAntonym(WordSense existingAntonym)
 {
     if (WordNetData.Context.DeleteAntonymyRelation(existingAntonym.SynsetID, existingAntonym.WordNumber, SynsetID, WordNumber).Equals(0))
     {
         SendPropertyChanged("Antonyms");
         existingAntonym.SendPropertyChanged("Antonyms");
     }
 }
示例#8
0
 public void AddAntonym(WordSense newAntonym)
 {
     if (WordNetData.Context.AddAntonymyRelation(newAntonym.SynsetID, newAntonym.WordNumber, SynsetID, WordNumber).Equals(0))
     {
         SendPropertyChanged("Antonyms");
         newAntonym.SendPropertyChanged("Antonyms");
     }
 }
示例#9
0
 public void DeleteParticipleForm(WordSense existingParticipleForm)
 {
     if (WordNetData.Context.DeleteParticipleRelation(SynsetID, WordNumber, existingParticipleForm.SynsetID, existingParticipleForm.WordNumber).Equals(0))
     {
         SendPropertyChanged("ParticipleForms");
         existingParticipleForm.SendPropertyChanged("BaseVerbFormsOfParticiple");
     }
 }
示例#10
0
 public void AddParticipleForm(WordSense newParticipleForm)
 {
     if (WordNetData.Context.AddParticipleRelation(SynsetID, WordNumber, newParticipleForm.SynsetID, newParticipleForm.WordNumber).Equals(0))
     {
         SendPropertyChanged("ParticipleForms");
         newParticipleForm.SendPropertyChanged("BaseVerbFormsOfParticiple");
     }
 }