去除每个页面的 语言datatable
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user