public static TemplateList GetAll() { HyperCatalog.WebServices.DAMWS.DAMWebService templateRepository = HCPage.WSDam; Business.Debug.Trace("WEBUI", "DAM uri = " + templateRepository.Url, DebugSeverity.Low); XmlDocument xmlTemplates = new XmlDocument(); xmlTemplates.LoadXml(templateRepository.ResourceGetAll("Templates")); XmlNodeList childNodes = xmlTemplates.DocumentElement.ChildNodes; System.Collections.Specialized.StringCollection templates = new System.Collections.Specialized.StringCollection(); TemplateList tList = new TemplateList(); foreach (XmlNode n in childNodes) { tList.Add(new Template(n.Attributes["name"].InnerText)); } return(tList); }
public TemplateEnumerator(TemplateList coll) { collection = coll; nIndex = -1; }