去除每个页面的 语言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

@@ -20,11 +20,7 @@ namespace CleanMachineHMI.frmChild
public frmEditWaringMsg()
{
InitializeComponent();
_ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
}
private DataTable _ComboBoxLanguageTextList;
private DataTable _InfoLanguageTextList;
public string WarningId { get; set; }
private void txt_GotFocus(object sender, EventArgs e)
{
@@ -55,12 +51,12 @@ namespace CleanMachineHMI.frmChild
{
InitControlEvent();
this.SetFormControlText();
if (GlobalHelper.LanguageCode == "English")
{
kcmb_WarningType.Items.Clear();
foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_WarningType.Name, "KryptonComboBox"))
foreach (string item in this.GetComBoboxItemArr(kcmb_WarningType.Name, "KryptonComboBox"))
{
kcmb_WarningType.Items.Add(item["CONTROL_NAME"].ToString());
kcmb_WarningType.Items.Add(item);
}
}
kcmb_WarningType.SelectedIndex = 0;