internal void LoadTemplates() { XmlNodeList blockList = Document.GetElementsByTagName("blocks"); BlockManager = new BlockManager(RootPath); BlockManager.LoadBlocks(blockList[0]); XmlNodeList templateList = Document.GetElementsByTagName("template"); foreach (XmlNode template in templateList) { TemplateDefinition templateDef = TemplateDefinition.LoadCardDefinition(template); templateDef.rootPath = RootPath; TemplateSelector.AddTemplate(templateDef); } }