public SavedLayout(string curCompound, int layoutX, int layoutY, double layoutSize, Compound root) { exploredCompound = curCompound; layoutPosition[0] = layoutX; layoutPosition[1] = layoutY; size = layoutSize; if (root != null) { nodesPositions.Clear(); List <Node> nodes = root.GetChildren(false); foreach (Node node in nodes) { nodesPositions.Add(node.FullName, new float[] { node.UIx, node.UIy }); } } DumpDictionary(); }