make order of arguments more orthodox

This commit is contained in:
Michael Becker 2022-01-17 02:37:35 -05:00
parent ec36685c3b
commit 460250b7ad
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C
2 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ namespace MBS.Framework
public bool Process(ref EventArgs e, EventFilterType type) public bool Process(ref EventArgs e, EventFilterType type)
{ {
if (_processAction != null) if (_processAction != null)
return _processAction(ref e, type); return _processAction(type, ref e);
return true; return true;
} }
@ -101,7 +101,7 @@ namespace MBS.Framework
public bool Process(ref T e, EventFilterType type) public bool Process(ref T e, EventFilterType type)
{ {
if (_processAction != null) if (_processAction != null)
return _processAction(ref e, type); return _processAction(type, ref e);
return true; return true;
} }

View File

@ -21,5 +21,5 @@
using System; using System;
namespace MBS.Framework namespace MBS.Framework
{ {
public delegate bool EventFilterDelegate<T>(ref T e, EventFilterType type) where T : EventArgs; public delegate bool EventFilterDelegate<T>(EventFilterType type, ref T e) where T : EventArgs;
} }