private static void AssignNode(INode node, TreeContext context) { node.Provider.ForDependencies((dep1, dep2) => context.ReorderNodes(node.Provider, dep1, dep2)); var parent = context.GetAssignmentNode(node.Provider); node.Parent = parent; node.SourceParent = parent; }
public static void ReorderNodesForFilters(TreeContext context) { context.Filters .ToList() .ForEach(x => x.ForDependencies((dep1, dep2) => context.ReorderNodes(x, dep1, dep2))); }