public WordReplacementAmbiguity(WordSegment originalWordSegment, IEnumerable<Word> replacemeWords)
 {
     OriginalWordSegment = originalWordSegment;
     AlternativeWords = replacemeWords;
 }
示例#2
0
 private void ResultsForm_HighlightRequested(WordSegment segment)
 {
     Highlight(segment);
 }
 private Task<WordReplacementAmbiguityResult> ResolveAmbiguity(WordSegment segment, IEnumerable<Word> alternatives)
 {
     return resolver(new WordReplacementAmbiguity(segment, alternatives));
 }
示例#4
0
 private void Highlight(WordSegment segment)
 {
     Dehighlight();
     activeHighlight = MainTextArea.Highlight(segment.FromIndex, segment.Length);
 }