Exemplo n.º 1
0
        public PageSectionInfo(XmlNode xmlNode, PageGroupInfo parentGroup)
        {
            if (parentGroup == null)
                throw new ArgumentNullException("parentGroup");

            _parent = parentGroup;

            ReadXmlAttributes(xmlNode);
            ReadChilds(xmlNode);

            _isNew = false;
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 public PageSectionInfo(PageGroupInfo parentGroup)
 {
     _parent = parentGroup;
     _isNew = true;
 }
Exemplo n.º 4
0
 private static String GetFullName(PageGroupInfo group, String pageName)
 {
     return group.Name + "." + pageName;
 }