protected override void InternalReconcileChildren() { ArrayList items = new ArrayList(Nodes.Count); foreach (TreeNode node in Nodes) { items.Add(node); } Dataphoria.Execute(GetChildExpression(), GetParams(), ARow => { TreeNode node = FindByKey(ARow); if (node != null) { items.Remove(node); ReconcileNode((BaseNode)node, ARow); } else { AddNode(CreateChildNode(ARow)); } }); foreach (TreeNode node in items) { Nodes.Remove(node); } }
public void RefreshRegistered() { Dataphoria.Execute(GetChildExpression(), GetParams(), ARow => { var node = FindByKey(ARow) as LibraryNode; if (node != null) { UpdateNode(node, ARow); } }); }