JT
2 years ago
4 changed files with 67 additions and 2 deletions
@ -0,0 +1,16 @@ |
|||||||
|
using System; |
||||||
|
|
||||||
|
namespace StabilityMatrix.Helper; |
||||||
|
|
||||||
|
public class EventManager |
||||||
|
{ |
||||||
|
public static EventManager Instance { get; } = new(); |
||||||
|
|
||||||
|
private EventManager() |
||||||
|
{ |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
public event EventHandler<int>? GlobalProgressChanged; |
||||||
|
public void OnGlobalProgressChanged(int progress) => GlobalProgressChanged?.Invoke(this, progress); |
||||||
|
} |
Loading…
Reference in new issue