Skip to content

Commit

Permalink
Minor change to treeview layout
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Jan 12, 2022
1 parent f2bf316 commit 26bd4b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion FetchXmlBuilder/AppCode/TreeNodeHelper.cs
Expand Up @@ -115,6 +115,10 @@ public static void SetNodeText(TreeNode node, FetchXmlBuilder fxb)
{
text += " pg:" + attributes["page"];
}
if (string.IsNullOrWhiteSpace(text))
{
text = "fetch";
}
break;
case "entity":
case "link-entity":
Expand Down Expand Up @@ -242,11 +246,11 @@ public static void SetNodeText(TreeNode node, FetchXmlBuilder fxb)
}
break;
}
text = text.Trim();
if (FetchXmlBuilder.friendlyNames && !string.IsNullOrEmpty(text))
{
text = text.Substring(0, 1).ToUpper() + text.Substring(1);
}
text = text.Trim();
if (string.IsNullOrWhiteSpace(text))
{
text = $"({node.Name})";
Expand Down

0 comments on commit 26bd4b9

Please sign in to comment.