Beispiel #1
0
        /// <summary>
        /// Create ICommentMarker from specified Token
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        private IAbstractMarkupDataContainer GetComment(Token item)
        {
            var commentProperties = PropertiesFactory.CreateCommentProperties();
            var comment           = PropertiesFactory.CreateComment(item.Content, item.Author, Severity.Low);

            comment.Date = item.Date;
            commentProperties.Add(comment);
            var commentMarker = ItemFactory.CreateCommentMarker(commentProperties);

            return(commentMarker);
        }
Beispiel #2
0
        public IAbstractMarkupData CreateCommentContainer(string text, string author, Severity severity, DateTime dateTime, string version)
        {
            var comment = PropertiesFactory.CreateComment(text, author, severity);

            comment.Date    = dateTime;
            comment.Version = version;

            var commentProperties = PropertiesFactory.CreateCommentProperties();

            commentProperties.Add(comment);
            var commentMarker = ItemFactory.CreateCommentMarker(commentProperties);

            return(commentMarker);
        }