Example #1
0
        private static TreeNodeWithConnectionInfo CreateEntityNode(IMetadataProvider provider, Entity entity)
        {
            var imageKey = ImageKeys.GetImageKey(entity);
            var node     = CreateNode(provider, entity.FullName, imageKey, entity);

            node.ToolTipText = DocumentationBuilder.ToToolTip(provider.ConnectionInfo, entity);
            return(node);
        }
Example #2
0
 private static void AddPropertiesToNode(IMetadataProvider provider, TreeNode entityNode, IEnumerable <Property> properties)
 {
     foreach (Property property in properties.OrderBy(c => c.Name))
     {
         string   name     = DocumentationBuilder.ToNodeText(property);
         var      imageKey = ImageKeys.GetImageKey(property);
         TreeNode node     = CreateNode(provider, name, imageKey, property);
         node.ToolTipText = DocumentationBuilder.ToToolTip(property);
         entityNode.Nodes.Add(node);
     }
 }