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