public static Panel CreatePanel(LayoutManager layoutManager) { Panel p = new Panel(); layoutManagers.Add(p.GetHashCode(), layoutManager); return p; }