Esempio n. 1
0
        public WindowEntityCollection GetAllWindow()
        {
            WindowEntityCollection list = new WindowEntityCollection();

            foreach (XElement element in _indexXml.XPathSelectElements(XPATH_Index_Window_Entity))
            {
                WindowEntity entity = GetWindowEntity(element.Attribute("Id").Value);
                list.Add(entity);
            }

            return(list);
        }
Esempio n. 2
0
        public WindowEntityCollection GetWindowList(string folderId)
        {
            WindowEntityCollection list = new WindowEntityCollection();

            foreach (XElement element in _indexXml.XPathSelectElements(
                         String.Format(XPATH_Index_SelectWindow_ByFolderId, folderId)))
            {
                WindowEntity entity = GetWindowEntity(element.Attribute("Id").Value);
                list.Add(entity);
            }

            return(list);
        }