public void LoadDiagramNodes() { ObjectItem root = new ObjectItem(); root.Name = "Root"; root.Description = "This is Root"; root.Icon = "/Images/DiagramRootNode.png"; mRootItem.AddChild(root); ObjectItem A = new ObjectItem(); A.Name = "A"; A.Description = "This is A"; A.Icon = "/Images/DiagramNode.png"; root.AddChild(A); ObjectItem B = new ObjectItem(); B.Name = "B"; B.Description = "This is B"; B.Icon = "/Images/DiagramNode.png"; root.AddChild(B); ObjectItem C = new ObjectItem(); C.Name = "C"; C.Description = "This is C"; C.Icon = "/Images/DiagramNode.png"; root.AddChild(C); ObjectItem A1 = new ObjectItem(); A1.Name = "A1"; A1.Description = "This is A1"; A1.Icon = "/Images/DiagramNode.png"; A.AddChild(A1); ObjectItem A2 = new ObjectItem(); A2.Name = "A2"; A2.Description = "This is A2"; A2.Icon = "/Images/DiagramNode.png"; A.AddChild(A2); ObjectItem A3 = new ObjectItem(); A3.Name = "A3"; A3.Description = "This is A3"; A3.Icon = "/Images/DiagramNode.png"; A.AddChild(A3); ObjectItem A4 = new ObjectItem(); A4.Name = "A4"; A4.Description = "This is A4"; A4.Icon = "/Images/DiagramNode.png"; A.AddChild(A4); ObjectItem B1 = new ObjectItem(); B1.Name = "B1"; B1.Description = "This is B1"; B1.Icon = "/Images/DiagramNode.png"; B.AddChild(B1); ObjectItem B2 = new ObjectItem(); B2.Name = "B2"; B2.Description = "This is B2"; B2.Icon = "/Images/DiagramNode.png"; B.AddChild(B2); ObjectItem B3 = new ObjectItem(); B3.Name = "B3"; B3.Description = "This is B3"; B3.Icon = "/Images/DiagramNode.png"; B.AddChild(B3); ObjectItem C1 = new ObjectItem(); C1.Name = "C1"; C1.Description = "This is C1"; C1.Icon = "/Images/DiagramNode.png"; C.AddChild(C1); ObjectItem A1a = new ObjectItem(); A1a.Name = "A1a"; A1a.Description = "This is A1a"; A1a.Icon = "/Images/DiagramNode.png"; A1.AddChild(A1a); ObjectItem A1b = new ObjectItem(); A1b.Name = "A1b"; A1b.Description = "This is A1b"; A1b.Icon = "/Images/DiagramNode.png"; A1.AddChild(A1b); ObjectItem A1c = new ObjectItem(); A1c.Name = "A1c"; A1c.Description = "This is A1c"; A1c.Icon = "/Images/DiagramNode.png"; A1.AddChild(A1c); }
public void AddChild(ObjectItem child) { child.Parent = this; mChildren.Add(child); }