Esempio n. 1
0
 private void HighlightIfSelected(string selectedTypeUri, SchemaOrgOwlType schematype, TreeNode node)
 {
     if (selectedTypeUri.Equals(schematype.URI, StringComparison.OrdinalIgnoreCase)) {
         node.Selected = true;
        // childnode.ShowCheckBox = true;
         //childnode.Checked = true;
         node.ImageUrl = WAFContext.UrlFromHostToApp + SchemaOrgSettings.TypeMappedIconUrl;
         expandAllParents(node);
     }
 }
Esempio n. 2
0
    private void recursiveReadClasses(SchemaOrgOwlType schematype, ref TreeNode node, string selectedName)
    {
        foreach (SchemaOrgOwlType item in _allTypes.Values) {
            if (item.ParentTypes.Contains(schematype)) {

                TreeNode childnode = new TreeNode(item.Name, item.URI);
                childnode.ToolTip = item.Description;
                childnode.ImageUrl = WAFContext.UrlFromHostToApp + SchemaOrgSettings.TypeIconUrl;
                childnode.Expanded = false;
                node.ChildNodes.Add(childnode);
                HighlightIfSelected(selectedName, item, childnode);
                recursiveReadClasses(item, ref childnode, selectedName);
            }
        }
    }