启动 加载语言配置文件
This commit is contained in:
@@ -26,7 +26,7 @@ namespace CleanMachineHMI
|
||||
public frmMainNew()
|
||||
{
|
||||
InitializeComponent();
|
||||
_InfoLanguageTextList = this.GetInfoLanguageText_1(GlobalHelper.LanguageCode, "Info%");
|
||||
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "Info%");
|
||||
}
|
||||
|
||||
#region 全局变量
|
||||
@@ -145,7 +145,7 @@ namespace CleanMachineHMI
|
||||
{
|
||||
try
|
||||
{
|
||||
this.SetFormControlText(GlobalHelper.LanguageCode);
|
||||
this.SetFormControlText();
|
||||
SwitchFrmMenu = new dlgSwitchFrmMenu(AddFrmMenuPage);
|
||||
|
||||
string sql1 = $@" SELECT * FROM BAS_PLC_ITEM ";
|
||||
@@ -186,7 +186,7 @@ namespace CleanMachineHMI
|
||||
bool isInitStatus = PlcOperationHelper.Instance.PlcInit();
|
||||
if (isInitStatus)
|
||||
{
|
||||
label3Professional.Text = _InfoLanguageTextList.GetInfoText_1("串口打开成功,PLC连接成功!", "label3Professional", "Info_Success");
|
||||
label3Professional.Text = this.GetInfoText("串口打开成功,PLC连接成功!", "label3Professional", "Info_Success");
|
||||
label3Professional.BackColor = Color.Lime;
|
||||
isPlcConnStatus = true;
|
||||
|
||||
@@ -233,7 +233,7 @@ namespace CleanMachineHMI
|
||||
else
|
||||
{
|
||||
//label3Professional.Text = "串口打开失败,PLC连接失败!";
|
||||
label3Professional.Text = _InfoLanguageTextList.GetInfoText_1("串口打开失败,PLC连接失败!", "label3Professional", "Info_Failed");
|
||||
label3Professional.Text = this.GetInfoText("串口打开失败,PLC连接失败!", "label3Professional", "Info_Failed");
|
||||
label3Professional.BackColor = Color.Red;
|
||||
isPlcConnStatus = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user