ShowLogToFrmHelper.cs 483 B

1234567891011121314151617181920
  1. using NX_ModelClassLibrary.CustomEvent;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace NX_CommonClassLibrary
  8. {
  9. public class ShowLogToFrmHelper
  10. {
  11. //定义一个委托类型的事件
  12. public event EventHandler<ShowLogToFrmEventArgs> OnShowLogToForm;
  13. public void ShowLog(ShowLogToFrmEventArgs e)
  14. {
  15. OnShowLogToForm?.Invoke(this, e);
  16. }
  17. }
  18. }