Skip to content

Commit 3ede763

Browse files
author
BRUNER Patrick
committed
small fix
1 parent 1a25392 commit 3ede763

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/LogExpert.UI/Dialogs/FilterSelectorForm.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public FilterSelectorForm (IList<ILogLineColumnizer> existingColumnizerList, ILo
3232
ConfigManager = configManager;
3333

3434
filterComboBox.SelectedIndexChanged += OnFilterComboBoxSelectedIndexChanged;
35+
filterComboBox.Format += OnFilterComboBoxFormat;
3536

3637
// for the currently selected columnizer use the current instance and not the template instance from
3738
// columnizer registry. This ensures that changes made in columnizer config dialogs
@@ -85,6 +86,14 @@ private void ApplyResources ()
8586

8687
#region Events handler
8788

89+
private void OnFilterComboBoxFormat(object sender, ListControlConvertEventArgs e)
90+
{
91+
if (e.ListItem is ILogLineColumnizer columnizer)
92+
{
93+
e.Value = columnizer.GetName();
94+
}
95+
}
96+
8897
private void OnFilterComboBoxSelectedIndexChanged (object sender, EventArgs e)
8998
{
9099
var col = _columnizerList[filterComboBox.SelectedIndex];
@@ -101,7 +110,7 @@ private void OnFilterComboBoxSelectedIndexChanged (object sender, EventArgs e)
101110
}
102111

103112

104-
//TODO: Check if this logic can be remoed from this class and remove all the config manager instances from here.
113+
//TODO: Check if this logic can be removed from this class and remove all the config manager instances from here.
105114
private void OnConfigButtonClick (object sender, EventArgs e)
106115
{
107116
if (SelectedColumnizer is IColumnizerConfigurator configurator)

0 commit comments

Comments
 (0)