From c90eca89b5338e77ece6a56c8a3eb8e98be89077 Mon Sep 17 00:00:00 2001 From: Sean Feldman Date: Wed, 6 Sep 2023 21:20:00 -0600 Subject: [PATCH] Fix single event saving --- .../Controls/PartitionListenerControl.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/ServiceBusExplorer/Controls/PartitionListenerControl.cs b/src/ServiceBusExplorer/Controls/PartitionListenerControl.cs index 86ee13fd..b9eee34e 100644 --- a/src/ServiceBusExplorer/Controls/PartitionListenerControl.cs +++ b/src/ServiceBusExplorer/Controls/PartitionListenerControl.cs @@ -658,11 +658,6 @@ private void eventDataDataGridView_RowEnter(object sender, DataGridViewCellEvent try { - // Investigation: Properties throws OOTB. Can access the member field but it has no values. - // var type = typeof(EventData); - // var fieldInfo = type.GetField("properties", BindingFlags.Instance | BindingFlags.NonPublic); - // var value = fieldInfo.GetValue(currentEventData); - var listViewItems = currentEventData.Properties.Select(p => new ListViewItem(new[] { p.Key, (p.Value ?? string.Empty).ToString() })).ToArray(); eventDataPropertyListView.Items.Clear(); eventDataPropertyListView.Items.AddRange(listViewItems); @@ -1523,7 +1518,7 @@ private void saveSelectedEventToolStripMenuItem_Click(object sender, EventArgs e { return; } - var bindingList = eventDataBindingSource.DataSource as BindingList; + var bindingList = eventDataBindingSource.DataSource as BindingList; if (bindingList == null) { return;