schangxiang@126.com
2025-11-04 f5ed29dc26c7cd952d56ec5721a2efc43cd25992
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using DataEntity.Event;
using DataEntity.Sockets.Base;
using HandyControl.Data;
using System;
using System.IO;
using System.Windows.Interop;
using System.Windows.Media.Imaging;
using static DataEntity.Event.EventExArgs;
using static HxEnum.OperationTypeEnum;
using static XCommon.Event.EventBind;
 
namespace XCommon.Event
{
    /// <summary>
    /// 事件处理
    /// </summary>
    public static class EventBind
    {
        #region 变量
        public delegate void EventExHandler(object sender, EventExArgs e);
        public static event EventExHandler MainEvent;
 
        /// <summary>
        /// 节点操作类型(1跳过、2重试、3终止)
        /// </summary>
        public static NodeOperationTypeEnum OperMark = NodeOperationTypeEnum.Continue;
        #endregion
 
        /// <summary>
        /// 显示设备报错信息
        /// </summary>
        /// <param name="errorData"></param>
        public static void CallEvent(ErrorClientData errorData)
        {
            EventBind.MainEvent?.Invoke(errorData, new EventExArgs(EventEnum.ShowDeviceErrorDialg));
        }
    }
}