public ToolStripGroupEntityCollection GetGroupCollection(string pageId)
        {
            ToolStripGroupEntityCollection collection = new ToolStripGroupEntityCollection();

            foreach (XElement element in _indexXml.XPathSelectElements(String.Format(XPATH_Index_SelectGroup_ByPageId, pageId)))
            {
                ToolStripGroupEntityDev toolStripGroupEntity = new ToolStripGroupEntityDev();
                //FormFolderEntity在往Index文件里存的时候是直接ToXml的
                //所以此处直接FromXml即可
                toolStripGroupEntity.FromXml(element.ToString());

                collection.Add(toolStripGroupEntity);
            }

            return(collection);
        }
        public ToolStripGroupEntity GetGroupEntity(string id)
        {
            if (String.IsNullOrEmpty(id))
            {
                Debug.Assert(false, "GetGroupEntity 传入的 id 为空");
                return(null);
            }

            XElement element = _indexXml.XPathSelectElement(String.Format(XPATH_Index_SelectGroup, id));

            if (element == null)
            {
                Debug.Assert(false, "GetGroupEntity 失败,返回了 null");
            }

            ToolStripGroupEntityDev toolStripGroupEntity = new ToolStripGroupEntityDev();

            toolStripGroupEntity.FromXml(element.ToString());
            return(toolStripGroupEntity);
        }