修改
This commit is contained in:
@@ -89,6 +89,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
LogHelper.WriteLog($"用户:【{Global.UserInfo.UserName}】注销登录!", LogTypeEum.Run);
|
||||
Global.LoginForm.Show();
|
||||
Global.UserInfo = null;
|
||||
//GlobalHelper.MainForm.Hide();
|
||||
Global.MainFormNew.Hide();
|
||||
|
||||
@@ -1444,7 +1445,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
return;
|
||||
@@ -1487,7 +1488,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
return;
|
||||
@@ -1578,7 +1579,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
return;
|
||||
@@ -1721,7 +1722,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
swtbtn_brush1.L_IsOpen = false;
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
swtbtn_brush1.L_IsOpen = false;
|
||||
@@ -1761,7 +1762,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
swtbtn_brush2.L_IsOpen = false;
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
swtbtn_brush2.L_IsOpen = false;
|
||||
@@ -1806,7 +1807,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
swtbtn_nozzle1.L_IsOpen = false;
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
swtbtn_nozzle1.L_IsOpen = false;
|
||||
@@ -1846,7 +1847,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
swtbtn_brush3.L_IsOpen = false;
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
swtbtn_brush3.L_IsOpen = false;
|
||||
@@ -1888,7 +1889,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
return;
|
||||
@@ -1964,7 +1965,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
return;
|
||||
@@ -2003,7 +2004,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
return;
|
||||
@@ -2106,7 +2107,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
return;
|
||||
@@ -2154,7 +2155,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
return;
|
||||
@@ -2230,7 +2231,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
return;
|
||||
@@ -2263,7 +2264,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
swtbtn_staticBar.L_IsOpen = false;
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
swtbtn_staticBar.L_IsOpen = false;
|
||||
@@ -2495,7 +2496,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
return;
|
||||
@@ -2533,7 +2534,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
return;
|
||||
}
|
||||
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
return;
|
||||
@@ -2775,7 +2776,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
KryptonMessageBox.Show("The manual operation interface has been opened and is currently in manual mode.");
|
||||
return;
|
||||
}
|
||||
if (!PlcOperationHelper.Instance.isConn)
|
||||
if (!PlcOperationHelper.Instance.IsConn)
|
||||
{
|
||||
KryptonMessageBox.Show("The PLC is disconnected and unable to operate the equipment.");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user