//loading public static PatchPanel loadFromXML(PatchBox box, XmlNode panelNode) { PatchPanel panel = null; String panelName = panelNode.Attributes["paneltype"].Value; PatchPanelLoader loader = panelTypeList[panelName]; if (loader != null) { panel = loader.loadFromXML(box, panelNode); } return(panel); }
public static void registerPanelType(String panelName, PatchPanelLoader loader) { panelTypeList.Add(panelName, loader); }