public PageSectionInfo(XmlNode xmlNode, PageGroupInfo parentGroup) { if (parentGroup == null) throw new ArgumentNullException("parentGroup"); _parent = parentGroup; ReadXmlAttributes(xmlNode); ReadChilds(xmlNode); _isNew = false; }
public Boolean CreateGroup(String name, String masterPage) { Boolean isSaved = false; try { PageGroupInfo group = new PageGroupInfo(); if (group.SetName(name) && group.SetMasterPage(masterPage)) { Groups.Add(group); Save(); isSaved = true; } } finally { Reset(); } return isSaved; }
public PageSectionInfo(PageGroupInfo parentGroup) { _parent = parentGroup; _isNew = true; }
private static String GetFullName(PageGroupInfo group, String pageName) { return group.Name + "." + pageName; }