Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Aug 8, 2023
2 parents 0690d1c + 5628014 commit 6242301
Show file tree
Hide file tree
Showing 4 changed files with 421 additions and 72 deletions.
3 changes: 1 addition & 2 deletions FetchXmlBuilder/DockControls/TreeBuilderControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -786,9 +786,8 @@ private void SelectAttributes()
fxb.LoadEntityDetails(entityName, SelectAttributes);
return;
}
var attributes = new List<AttributeMetadata>(fxb.GetDisplayAttributes(entityName));
var selected = entityNode.Nodes.Cast<TreeNode>().Where(n => n.Name == "attribute").Select(n => n.Value("name")).Where(a => !string.IsNullOrEmpty(a)).ToList();
var selectAttributesDlg = new SelectAttributesDialog(attributes, selected);
var selectAttributesDlg = new SelectAttributesDialog(fxb, entityName, selected);
selectAttributesDlg.StartPosition = FormStartPosition.CenterParent;
if (selectAttributesDlg.ShowDialog() == DialogResult.OK)
{
Expand Down
Loading

0 comments on commit 6242301

Please sign in to comment.