private void sister(navPoint s) { s.PARENT = this.parent; if (this.parent.CHILD == null) { this.parent.CHILD = new List <navPoint>(); } this.parent.CHILD.Add(s); }
public navPoint() { this.id = ""; this.playOrder = 0; this.text = ""; this.src = ""; this.parent = null; this.child = new List <navPoint>(); }
public navPoint(String id, int playOrder, String text, String src, navPoint parent, List <navPoint> child) { this.id = id; this.playOrder = playOrder; this.text = text; this.src = src; this.parent = parent; if (child == null) { this.child = new List <navPoint>(); } else { this.child = child; } }