示例#1
0
        public static TVStringItem[] GetTreeViewNodes()
        {
            List<TVStringItem> res = new List<TVStringItem>();

            foreach (var c in AllCategories)
            {
                TVStringItem i = new TVStringItem() { Title = c.Title };
                foreach (var f in c.Functions)
                {
                    i.Items.Add(new TVStringItem() { Title = f, IsFunction = true, FunctionName = f });
                }
                res.Add(i);
            }

            return res.ToArray();
        }
示例#2
0
        public static TVStringItem[] GetTreeViewNodes()
        {
            List <TVStringItem> res = new List <TVStringItem>();

            foreach (var c in AllCategories)
            {
                TVStringItem i = new TVStringItem()
                {
                    Title = c.Title
                };
                foreach (var f in c.Functions)
                {
                    i.Items.Add(new TVStringItem()
                    {
                        Title = f, IsFunction = true, FunctionName = f
                    });
                }
                res.Add(i);
            }

            return(res.ToArray());
        }