去除每个页面的 语言datatable

This commit is contained in:
Kangkang
2022-03-18 21:25:34 +08:00
parent 2b39fb593c
commit 0fc04d5b52
44 changed files with 112 additions and 321 deletions

View File

@@ -17,13 +17,9 @@ namespace CleanMachineHMI
public frmIoMonitorNew()
{
InitializeComponent();
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "Label");
}
private object lockObj = new object();
/// <summary>
/// 页面信息语言文本列表
/// </summary>
private DataTable _InfoLanguageTextList;
public const int WM_SYSCOMMAND = 0x112;
public const int SC_MOVE = 0xF012;
protected override void WndProc(ref Message m)
@@ -179,7 +175,7 @@ namespace CleanMachineHMI
{
KryptonLabel label1 = this.Controls.Find("klb_X" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as KryptonLabel;
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
}
}));
}
@@ -196,7 +192,7 @@ namespace CleanMachineHMI
{
KryptonLabel label1 = this.Controls.Find("klb_Y" + Convert.ToString(Convert.ToInt32(item.PlcItemPriAddress), 8).PadLeft(2, '0'), true)[0] as KryptonLabel;
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
}
}));
}