修改结构
This commit is contained in:
@@ -189,7 +189,7 @@ namespace CleanMachineHMI
|
||||
bool isInitStatus = PlcOperationHelper.Instance.PlcInit();
|
||||
if (isInitStatus)
|
||||
{
|
||||
label3Professional.Text = this.GetInfoText("串口打开成功,PLC连接成功!", "label3Professional_Success");
|
||||
label3Professional.Text = this.T("串口打开成功,PLC连接成功!", "label3Professional_Success");
|
||||
label3Professional.BackColor = Color.Lime;
|
||||
isPlcConnStatus = true;
|
||||
|
||||
@@ -236,7 +236,7 @@ namespace CleanMachineHMI
|
||||
else
|
||||
{
|
||||
//label3Professional.Text = "串口打开失败,PLC连接失败!";
|
||||
label3Professional.Text = this.GetInfoText("串口打开失败,PLC连接失败!", "label3Professional_Failed");
|
||||
label3Professional.Text = this.T("串口打开失败,PLC连接失败!", "label3Professional_Failed");
|
||||
label3Professional.BackColor = Color.Red;
|
||||
isPlcConnStatus = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user