修改
This commit is contained in:
@@ -27,7 +27,7 @@ namespace CleanMachineHMI.frmChild
|
||||
public static List<Warning> warnLst = new List<Warning>();
|
||||
private void frmPopupWarningMsg_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
private void SetDataGridView()
|
||||
{
|
||||
@@ -73,7 +73,7 @@ namespace CleanMachineHMI.frmChild
|
||||
}
|
||||
|
||||
private void frmPopupWarningMsg_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
{
|
||||
//if (PlcOperationHelper.Instance.WritePlcItem("AlarmPopUpMsg", "0", PlcItemTypeDesc.D))
|
||||
//{
|
||||
// LogHelper.WriteLog($"清空PLC报警提示变量成功!", LogTypeEum.Run);
|
||||
@@ -84,17 +84,17 @@ namespace CleanMachineHMI.frmChild
|
||||
{
|
||||
kryptonButton1.Enabled = false;
|
||||
try
|
||||
{
|
||||
Task.Run(async delegate
|
||||
{
|
||||
//Task.Run(async delegate
|
||||
//{
|
||||
if (PlcOperationHelper.Instance.WritePlcItem("AlarmPopUpMsg", "0", PlcItemTypeDesc.D))
|
||||
{
|
||||
if (PlcOperationHelper.Instance.WritePlcItem("AlarmPopUpMsg", "0", PlcItemTypeDesc.D))
|
||||
{
|
||||
LogHelper.WriteLog($"清空PLC报警提示变量成功!", LogTypeEum.Run);
|
||||
}
|
||||
await Task.Delay(500);
|
||||
Global.PopupWarningMsgForm = null;
|
||||
this.Close();
|
||||
});
|
||||
LogHelper.WriteLog($"清空PLC报警提示变量成功!", LogTypeEum.Run);
|
||||
}
|
||||
// await Task.Delay(500);
|
||||
Global.PopupWarningMsgForm = null;
|
||||
this.Close();
|
||||
//});
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user