public void AddProperty(NodeProperty prop) { if (prop.Name.StartsWith("/delete-node/")) { var node = Root.FindNodeByPath($"{Path}|{prop.Name.Replace("/delete-node/", "").Trim()}"); node.Parent._childNodes.Remove(node); Root.DeleteNode(node); return; } _properties[prop.Name] = prop; }
public static OverlayItem DeleteProperty(Node node, NodeProperty property) { return(new OverlayItem { _type = OverlayType.DeleteProperty, Node = node, _property = property }); }