diff --git a/MBS.Framework/EventFilter.cs b/MBS.Framework/EventFilter.cs index 04d67b6..79c0a0a 100644 --- a/MBS.Framework/EventFilter.cs +++ b/MBS.Framework/EventFilter.cs @@ -64,7 +64,7 @@ namespace MBS.Framework public bool Process(ref EventArgs e, EventFilterType type) { if (_processAction != null) - return _processAction(ref e, type); + return _processAction(type, ref e); return true; } @@ -101,7 +101,7 @@ namespace MBS.Framework public bool Process(ref T e, EventFilterType type) { if (_processAction != null) - return _processAction(ref e, type); + return _processAction(type, ref e); return true; } diff --git a/MBS.Framework/EventFilterDelegate.cs b/MBS.Framework/EventFilterDelegate.cs index 361ce94..3fc8114 100644 --- a/MBS.Framework/EventFilterDelegate.cs +++ b/MBS.Framework/EventFilterDelegate.cs @@ -21,5 +21,5 @@ using System; namespace MBS.Framework { - public delegate bool EventFilterDelegate(ref T e, EventFilterType type) where T : EventArgs; + public delegate bool EventFilterDelegate(EventFilterType type, ref T e) where T : EventArgs; }