public Comment getEntity(File file) { Comment comment = new Comment(); comment.file = file; comment.serverCommentID = commentid; comment.authorName = author; comment.content = content; return comment; }
// Called during a remove operation private void detach_file(File file) { NotifyPropertyChanging("file"); file.meeting = null; }
public File getEntity(Meeting meeting) { File file = new File(); file.meeting = meeting; file.serverFileID = fileid; file.fileName = filename; file.authorName = author; file.hash = hash; List<Comment> list = new List<Comment>(); foreach(CommentOutput comment in comments) list.Add(comment.getEntity(file) ); file.comments.AddRange(list); return file; }
// Called during an add operation private void attach_file(File file) { NotifyPropertyChanging("file"); file.meeting = this; }