去除每个页面的 语言datatable
This commit is contained in:
@@ -24,13 +24,9 @@ namespace CleanMachineHMI
|
||||
public frmIOMonitor_Old()
|
||||
{
|
||||
InitializeComponent();
|
||||
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "Label");
|
||||
InitControl();
|
||||
}
|
||||
/// <summary>
|
||||
/// 页面信息语言文本列表
|
||||
/// </summary>
|
||||
private DataTable _InfoLanguageTextList;
|
||||
|
||||
bool isThRun = false;
|
||||
List<BtnPlcItemMonitor> lstMoitor_X = new List<BtnPlcItemMonitor>();
|
||||
List<BtnPlcItemMonitor> lstMoitor_Y = new List<BtnPlcItemMonitor>();
|
||||
@@ -171,14 +167,7 @@ namespace CleanMachineHMI
|
||||
int colSecondLocY = 8;
|
||||
|
||||
int panalTemplateWidth = 245;
|
||||
if (GlobalHelper.LanguageCode == "English")
|
||||
{
|
||||
panalTemplateWidth = 245;
|
||||
}
|
||||
else
|
||||
{
|
||||
panalTemplateWidth = 175;
|
||||
}
|
||||
|
||||
int panalTemplateHeight = 30;
|
||||
|
||||
int wdNum = kryptonPanel2.Width / 2;
|
||||
@@ -212,7 +201,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 = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
|
||||
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
|
||||
|
||||
panel.Controls.Add(label);
|
||||
panel.Controls.Add(button);
|
||||
@@ -247,7 +236,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 = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
|
||||
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
|
||||
|
||||
panel.Controls.Add(label);
|
||||
panel.Controls.Add(button);
|
||||
@@ -295,14 +284,6 @@ namespace CleanMachineHMI
|
||||
int colSecondLocY = 8;
|
||||
|
||||
int panalTemplateWidth = 245;
|
||||
if (GlobalHelper.LanguageCode == "English")
|
||||
{
|
||||
panalTemplateWidth = 245;
|
||||
}
|
||||
else
|
||||
{
|
||||
panalTemplateWidth = 175;
|
||||
}
|
||||
int panalTemplateHeight = 30;
|
||||
|
||||
int wdNum = kryptonPanel3.Width / 2;
|
||||
@@ -338,7 +319,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 = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
|
||||
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
|
||||
|
||||
panel.Controls.Add(label);
|
||||
panel.Controls.Add(button);
|
||||
@@ -372,7 +353,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 = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode, "Label");
|
||||
label1.Text = this.GetInfoText(item.PlcItemName.Replace("(I/O监控)", ""), item.PlcItemCode);
|
||||
|
||||
panel.Controls.Add(label);
|
||||
panel.Controls.Add(button);
|
||||
|
||||
Reference in New Issue
Block a user