Skip to content

Commit

Permalink
Fix single event saving
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanFeldman committed Sep 7, 2023
1 parent e83ac49 commit c90eca8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/ServiceBusExplorer/Controls/PartitionListenerControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -1523,7 +1518,7 @@ private void saveSelectedEventToolStripMenuItem_Click(object sender, EventArgs e
{
return;
}
var bindingList = eventDataBindingSource.DataSource as BindingList<EventData>;
var bindingList = eventDataBindingSource.DataSource as BindingList<EventDataMessage>;
if (bindingList == null)
{
return;
Expand Down

0 comments on commit c90eca8

Please sign in to comment.