Beispiel #1
0
 public static Link CreateLinkForNode(IRequest request, Node parentNode, Node newNode, string comment)
 {
     var link = new Link(parentNode, newNode)
     {
         Comment = comment,
         DateAdded = DateTime.Now,
         User = request.User
     };
     request.UnitOfWork.Links.Save(link);
     return link;
 }
 public NodeWithRenderedLink(Node node, Link link) : this(NodeDropFactory.Create(node), new RenderedLinkDrop(link, node))
 {
 }
Beispiel #3
0
 public LinkDrop(Link link, NodeDrop endnode)
 {
     _link = link;
     Node = endnode;
 }
 public RenderedLinkDrop(Link link, Node endnode) : base(link, endnode)
 {
     Rendered = TemplateUtilities.RenderTemplate("Blocks/link", new {link = this});
 }
Beispiel #5
0
 public LinkDrop(Link link, Node endnode)
 {
     _link = link;
     Node = NodeDropFactory.Create(endnode);
 }