This commit is contained in:
gongxh
2022-05-09 08:59:35 +08:00
parent 64238fee13
commit b39357f27e
7 changed files with 370 additions and 264 deletions

View File

@@ -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)
{