Пример #1
0
 public MessageWrapperFull(Message message, ProjectWrapperFull project, IEnumerable <EmployeeWraperFull> subscribers) : base(message)
 {
     CanEditFiles = ProjectSecurity.CanEditFiles(message);
     CanReadFiles = ProjectSecurity.CanReadFiles(message.Project);
     Text         = HtmlUtility.GetFull(Text);
     Project      = project;
     Subscribers  = subscribers.ToList();
 }
Пример #2
0
 public TaskWrapperFull(Task task, Milestone milestone, ProjectWrapperFull project, IEnumerable <FileWrapper> files, IEnumerable <CommentInfo> comments, int commentsCount, bool isSubscribed, float timeSpend) : base(task, milestone)
 {
     Files            = files.ToList();
     CommentsCount    = commentsCount;
     IsSubscribed     = isSubscribed;
     Project          = project;
     CanEditFiles     = ProjectSecurity.CanEditFiles(task);
     CanCreateComment = ProjectSecurity.CanCreateComment(task);
     TimeSpend        = timeSpend;
     Comments         = comments.ToList();
 }