public static void MarkNonRootNodes(List <DiaNodeMold> NodeList) { foreach (DiaNodeMold current in NodeList) { LayerLoader.RecursiveSetIsRootFalse(current); } foreach (DiaNodeMold current2 in NodeList) { foreach (DiaNodeMold current3 in NodeList) { foreach (DiaOptionMold current4 in current3.optionList) { bool flag = false; foreach (string current5 in current4.ChildNodeNames) { if (current5 == current2.name) { flag = true; } } if (flag) { current2.isRoot = false; } } } } }
public static void MarkNonRootNodes(List <DiaNodeMold> NodeList) { foreach (DiaNodeMold d in NodeList) { LayerLoader.RecursiveSetIsRootFalse(d); } foreach (DiaNodeMold diaNodeMold in NodeList) { foreach (DiaNodeMold diaNodeMold2 in NodeList) { foreach (DiaOptionMold diaOptionMold in diaNodeMold2.optionList) { bool flag = false; foreach (string a in diaOptionMold.ChildNodeNames) { if (a == diaNodeMold.name) { flag = true; } } if (flag) { diaNodeMold.isRoot = false; } } } } }
public static void MarkNonRootNodes(List <DiaNodeMold> NodeList) { foreach (DiaNodeMold Node in NodeList) { LayerLoader.RecursiveSetIsRootFalse(Node); } foreach (DiaNodeMold Node2 in NodeList) { foreach (DiaNodeMold Node3 in NodeList) { foreach (DiaOptionMold option in Node3.optionList) { bool flag = false; foreach (string childNodeName in option.ChildNodeNames) { if (childNodeName == Node2.name) { flag = true; } } if (flag) { Node2.isRoot = false; } } } } }
private static void RecursiveSetIsRootFalse(DiaNodeMold d) { foreach (DiaOptionMold current in d.optionList) { foreach (DiaNodeMold current2 in current.ChildNodes) { current2.isRoot = false; LayerLoader.RecursiveSetIsRootFalse(current2); } } }
private static void RecursiveSetIsRootFalse(DiaNodeMold d) { foreach (DiaOptionMold diaOptionMold in d.optionList) { foreach (DiaNodeMold diaNodeMold in diaOptionMold.ChildNodes) { diaNodeMold.isRoot = false; LayerLoader.RecursiveSetIsRootFalse(diaNodeMold); } } }
private static void RecursiveSetIsRootFalse(DiaNodeMold d) { foreach (DiaOptionMold option in d.optionList) { foreach (DiaNodeMold childNode in option.ChildNodes) { childNode.isRoot = false; LayerLoader.RecursiveSetIsRootFalse(childNode); } } }