Пример #1
0
        public void AddComment(TaskComment comment)
        {
            Comments.Add(comment);

            VerticalComments = null;
            VerticalComments = Comments;

            CountComment++;
        }
Пример #2
0
        public TaskComment AddSystemComment(string commentary, int idUser)
        {
            TaskComment newComment = new TaskComment();

            newComment.IDUser         = idUser;
            newComment.IdTask         = this.ID;
            newComment.CreateDate     = DateTime.Now;
            newComment.Commentary     = commentary;
            newComment.TypeCommentary = 1;

            Comments.Add(newComment);

            VerticalComments = null;
            VerticalComments = Comments;

            CountComment++;

            return(newComment);
        }