Skip to content

Commit

Permalink
Condition control is HUGE improved! #1022
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Apr 4, 2024
1 parent 6dbdba8 commit c712727
Show file tree
Hide file tree
Showing 5 changed files with 391 additions and 140 deletions.
13 changes: 13 additions & 0 deletions FetchXmlBuilder/Builder/TreeNodeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,18 @@ internal static string GetTooltip(this TreeNode node)

return tooltip;
}

internal static bool HeritanceOfFilter(this TreeNode node)
{
if (node == null)
{
return false;
}
if (node.Name == "filter")
{
return true;
}
return HeritanceOfFilter(node.Parent);
}
}
}
2 changes: 1 addition & 1 deletion FetchXmlBuilder/Controls/FetchXmlElementControlBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static FetchXmlElementControlBase()
protected static Icon WarningIcon { get; }
protected static Icon InfoIcon { get; }

public void InitializeFXB(Dictionary<string, string> collection, FetchXmlBuilder fetchXmlBuilder, TreeBuilderControl tree, TreeNode node)
protected void InitializeFXB(Dictionary<string, string> collection, FetchXmlBuilder fetchXmlBuilder, TreeBuilderControl tree, TreeNode node)
{
BeginInit();

Expand Down
Loading

0 comments on commit c712727

Please sign in to comment.