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); }
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); }