Skip to content

Commit

Permalink
Minor UI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rappen committed Aug 7, 2023
1 parent f67d2a4 commit 1e8b82f
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 69 deletions.
140 changes: 79 additions & 61 deletions FetchXmlBuilder/Forms/SelectAttributesDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions FetchXmlBuilder/Forms/SelectAttributesDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public SelectAttributesDialog(FetchXmlBuilder fxb, string entity, List<string> s
PopulateAttributes();
initiating = false;
SetSelectedNos();
this.ActiveControl = txtFilter;
ActiveControl = txtFilter;
}

private void GenerateAllItems(List<AttributeMetadata> attributes, List<string> selectedAttributes)
Expand Down Expand Up @@ -198,7 +198,7 @@ private void chkMetamore_CheckedChanged(object sender, EventArgs e)
}
splitContainer1.Panel2Collapsed = !chkMetamore.Checked;
var width = (from ColumnHeader col in lvAttributes.Columns select col.Width).Sum() + 70;
Width = Math.Max(width, 400) + splitContainer1.Panel2.Width;
Width = Math.Max(width, 450) + splitContainer1.Panel2.Width;
}

private void ShowHideMeta(bool on, ColumnHeader col)
Expand Down Expand Up @@ -228,6 +228,12 @@ private void lvAttributes_ItemChecked(object sender, ItemCheckedEventArgs e)
timerSummary.Start();
}

private void timerSummary_Tick(object sender, EventArgs e)
{
timerSummary.Enabled = false;
SetSelectedNos();
}

private void SetSelectedNos()
{
if (initiating || working)
Expand Down Expand Up @@ -256,12 +262,6 @@ private void lnkShowOnViews_LinkClicked(object sender, LinkLabelLinkClickedEvent
PopulateAttributes(false, true);
}

private void timerSummary_Tick(object sender, EventArgs e)
{
timerSummary.Enabled = false;
SetSelectedNos();
}

private void lnkCheckShown_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
lvAttributes.Items.Cast<ListViewItem>().ToList().ForEach(a => a.Checked = true);
Expand Down

0 comments on commit 1e8b82f

Please sign in to comment.