修改
This commit is contained in:
@@ -182,15 +182,16 @@ namespace CleanMachineHMI
|
||||
public static bool SysThIsRunFlag { get; set; }
|
||||
#region 委托事件
|
||||
//定义一个委托类型的事件
|
||||
public static event EventHandler<EventArgs> OnShowX_Y_Status;
|
||||
public static bool eventLock = false;
|
||||
public static void ShowX_Y_Status(object sender, EventArgs e)
|
||||
{
|
||||
if (!eventLock)
|
||||
{
|
||||
OnShowX_Y_Status?.Invoke(sender, e);
|
||||
}
|
||||
}
|
||||
//public static event EventHandler<EventArgs> OnShowX_Y_Status;
|
||||
|
||||
//public static void ShowX_Y_Status(object sender, EventArgs e)
|
||||
//{
|
||||
// if (!eventLock)
|
||||
// {
|
||||
// OnShowX_Y_Status?.Invoke(sender, e);
|
||||
// }
|
||||
//}
|
||||
//定义一个委托类型的事件
|
||||
public static event EventHandler<EventArgs> OnShowSensorStatus;
|
||||
public static void ShowSensorStatus(object sender, EventArgs e)
|
||||
@@ -200,7 +201,7 @@ namespace CleanMachineHMI
|
||||
OnShowSensorStatus?.Invoke(sender, e);
|
||||
}
|
||||
}
|
||||
//定义一个委托类型的事件
|
||||
// 定义一个委托类型的事件
|
||||
public static event EventHandler<EventArgs> OnShowMainFrmAlarmMsg;
|
||||
public static bool eventAlarmLock = false;
|
||||
public static void ShowMainFrmAlarmMsg(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user