TKS_FAS_TreeItem Trans2TreeItem(TKS_FAS_Function func) { TKS_FAS_TreeItem item = new TKS_FAS_TreeItem(); item.id = func.Id; item.text = func.Name; item.state = "open"; item.@checked = false; item.children = new List <TKS_FAS_TreeItem>(); return(item); }
TKS_FAS_MenuItem Trans2MenuItem(TKS_FAS_Function func) { TKS_FAS_MenuItem item = new TKS_FAS_MenuItem(); item.id = func.Id; item.title = func.Name; item.icon = func.Img; item.href = func.URL; item.spread = false; item.children = new List <TKS_FAS_MenuItem>(); item.children = new List <TKS_FAS_MenuItem>(); return(item); }