示例#1
0
        //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);
        }
示例#2
0
 public static void registerPanelType(String panelName, PatchPanelLoader loader)
 {
     panelTypeList.Add(panelName, loader);
 }