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