예제 #1
0
        private Annotation.Annotation AddAnnotation(IWord word, string content)
        {
            var ann = new Annotation.Annotation(word)
            {
                Content = content
            };

            AddAnnotation(word, ann);
            return(ann);
        }
예제 #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);
        }