public JSONObject AddNode() { JSONObject child = new JSONObject(); child.Parent = this; child.ValueType = JSONType.Object; this.ChildObjects.Add(child); if (NodeMenu != null) { child.NodeMenu = NodeMenu; child.TreeNode.ContextMenuStrip = NodeMenu; } child.SetImage(); this.TreeNode.Nodes.Add(child.TreeNode); this.TreeNode.Expand(); this.SetImage(); return child; }