public JSONObject Delete() { if (this.TreeNode != null) { this.Parent.TreeNode.Nodes.Remove(this.TreeNode); } this.Parent.ChildObjects.Remove(this); this.Parent.SetImage(); return this.Parent; }