private Annotation.Annotation AddAnnotation(IWord word, string content) { var ann = new Annotation.Annotation(word) { Content = content }; AddAnnotation(word, ann); return(ann); }
private void AddAnnotation(IWord word, Annotation.Annotation value) { _ctx.Annotations.Add(word, value); var lvi = new ListViewItem { Text = word.Text, Tag = value }; lvi.SubItems.Add(value.Content); annotationsListView.Items.Add(lvi); }