old_flsystem/FLSystem/MainEvent.cs

24 lines
476 B
C#
Raw Permalink Normal View History

2022-09-20 03:10:29 +00:00
using FLSystem.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FLSystem
{
public class MainEvent
{
public static event EventHandler<CommonEvents> CommonEvents;
public static void OnEvent(object sender, CommonEvents e)
{
if (CommonEvents != null)
{
CommonEvents.Invoke(sender, e);
}
}
}
}