improve StubView

This commit is contained in:
haven1433 2023-08-12 21:41:48 -05:00
parent f7248e1f8a
commit 7700163949

View File

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
@ -34,6 +35,11 @@ namespace HavenSoft.HexManiac.Core {
EventNotifications.Add(closureCapture.Name);
}));
continue;
} else if (ev.EventHandlerType == typeof(NotifyCollectionChangedEventHandler)) {
ev.AddEventHandler(viewModel, (NotifyCollectionChangedEventHandler)((sender, e) => {
EventNotifications.Add(closureCapture.Name);
}));
continue;
}
var eventParams = ev.EventHandlerType
.GetMethod("Invoke")