Ejemplo n.º 1
0
        private Annotation.Annotation AddAnnotation(IWord word, string content)
        {
            var ann = new Annotation.Annotation(word)
            {
                Content = content
            };

            AddAnnotation(word, ann);
            return(ann);
        }
Ejemplo n.º 2
0
        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);
        }