mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-05-31 20:42:43 -05:00
improve StubView
This commit is contained in:
parent
f7248e1f8a
commit
7700163949
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user