启动 加载语言配置文件

This commit is contained in:
ehkang
2022-03-18 19:06:26 +08:00
parent 0a4fe0907b
commit 2b39fb593c
48 changed files with 4487 additions and 393 deletions

View File

@@ -212,7 +212,7 @@ namespace CleanMachineHMI
KryptonLabel label1 = new KryptonLabel();
label1.StateCommon.ShortText.Font = new Font("宋体", (float)8.5, FontStyle.Regular);
label1.Location = new Point(44, 6);
label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
panel.Controls.Add(label);
panel.Controls.Add(button);
@@ -247,7 +247,7 @@ namespace CleanMachineHMI
label1.StateCommon.ShortText.Font = new Font("宋体", (float)8.5, FontStyle.Regular);
label1.Location = new Point(44, 6);
//label1.Text = item.PlcItemName.Replace("(I/O监控)", "");
label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
panel.Controls.Add(label);
panel.Controls.Add(button);
@@ -338,7 +338,7 @@ namespace CleanMachineHMI
KryptonLabel label1 = new KryptonLabel();
label1.StateCommon.ShortText.Font = new Font("宋体", (float)8.5, FontStyle.Regular);
label1.Location = new Point(44, 6);
label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
panel.Controls.Add(label);
panel.Controls.Add(button);
@@ -372,7 +372,7 @@ namespace CleanMachineHMI
KryptonLabel label1 = new KryptonLabel();
label1.StateCommon.ShortText.Font = new Font("宋体", (float)8.5, FontStyle.Regular);
label1.Location = new Point(44, 6);
label1.Text = _InfoLanguageTextList.GetInfoText_1(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
panel.Controls.Add(label);
panel.Controls.Add(button);