private void CutNode(TreeDataNode node) { if (node == null) { return; } if (!node.Data.CanCutNode) { return; } if (node.Data.CutNode()) { TreeDataNode parent = node.Parent; UpdateUI(parent.Data); node.Remove(); _mainOutlineView.ReloadItem(parent, true); } }
private void DeleteNode(TreeDataNode node) { if (node == null) { return; } if (!node.Data.CanDeleteNode) { return; } if (node.Data.DeleteNode()) { UpdateUI(node.Parent.Data); //UpdateNodeText(node.Parent); TreeDataNode parent = node.Parent; node.Remove(); _mainOutlineView.ReloadItem(parent, true); } }