using NX_ModelClassLibrary.CustomEvent; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace NX_CommonClassLibrary { public class ShowLogToFrmHelper { //定义一个委托类型的事件 public event EventHandler OnShowLogToForm; public void ShowLog(ShowLogToFrmEventArgs e) { OnShowLogToForm?.Invoke(this, e); } } }