Ejemplo n.º 1
0
 /// <summary>
 /// Classic node constructor
 /// </summary>
 /// <param name="idx">Index</param>
 /// <param name="title">Title</param>
 /// <param name="id">Identifier</param>
 /// <param name="parent">Parent node</param>
 /// <param name="da">Creation date</param>
 /// <param name="dm">Last modified</param>
 /// <param name="anno">Annotations</param>
 /// <param name="type">Type</param>
 /// <param name="root">Root element ?</param>
 /// <param name="children">Children</param>
 public Node(int? idx, string title, int id, int? parent, long da, long dm, Node anno, string type, string root, List<Node> children)
     : base()
 {
     Index = idx;
     Title = title;
     ID = id;
     Parent = parent;
     DateAdded = da;
     DateModified = dm;
     if (anno != null)
     {
         Annotations = new List<Node>();
         Annotations.Add(anno);
     }
     Type = type;
     Root = root;
     Children = children;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Build this Node as a Bookmark
 /// </summary>
 /// <param name="index">Index</param>
 /// <param name="title">Title</param>
 /// <param name="id">Identifier</param>
 /// <param name="parent">Parent node</param>
 /// <param name="da">Creation date</param>
 /// <param name="dm">Last modified</param>
 /// <param name="type">Type</param>
 /// <param name="uri">URI</param>
 /// <param name="anno">Annotations</param>
 public Node(int? index,string title, int id, int parent, long da, long dm, string type, string uri, Node anno)
     : base()
 {
     Children = new List<Node>();
     Index = index;
     Title = title;
     ID = id;
     Parent = parent;
     DateAdded = da;
     DateModified = dm;
     Type = type;
     if (anno != null)
     {
         Annotations = new List<Node>();
         Annotations.Add(anno);
     }
     URI = uri;
 }