Exemplo n.º 1
0
        /// <summary>
        /// Get all facade items of the currently shown facade
        /// </summary>
        /// <param name="windowId"></param>
        /// <param name="controlId"></param>
        /// <returns></returns>
        public static List <FacadeItem> GetFacadeItems(int windowId, int controlId)
        {
            List <FacadeItem> returnItems = new List <FacadeItem>();
            int count = GUIFacadeControl.GetItemCount(GUIWindowManager.ActiveWindow, 50);

            for (int i = 0; i < count; i++)
            {
                GUIListItem item = GUIFacadeControl.GetListItem(GUIWindowManager.ActiveWindow, 50, i);
                returnItems.Add(new FacadeItem(item));
            }

            return(returnItems);
        }