去除每个页面的 语言datatable
This commit is contained in:
@@ -22,11 +22,7 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
public frmPlcAlarmLog()
|
||||
{
|
||||
InitializeComponent();
|
||||
_ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
|
||||
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
|
||||
}
|
||||
private DataTable _ComboBoxLanguageTextList;
|
||||
private DataTable _InfoLanguageTextList;
|
||||
|
||||
public delegate void dlgRefreshFrmHost(bool isContainHisData);
|
||||
public static dlgRefreshFrmHost RefreshFrmHost;
|
||||
@@ -67,17 +63,15 @@ namespace CleanMachineHMI.FrmUserControl
|
||||
InitControlEvent();
|
||||
this.SetFormControlText();
|
||||
kcmb_plcAlarmStatus.Items.Clear();
|
||||
if (GlobalHelper.LanguageCode == "English")
|
||||
|
||||
foreach (string item in this.GetComBoboxItemArr(kcmb_plcAlarmStatus.Name, "KryptonComboBox"))
|
||||
{
|
||||
foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcAlarmStatus.Name, "KryptonComboBox"))
|
||||
{
|
||||
kcmb_plcAlarmStatus.Items.Add(item["CONTROL_NAME"].ToString());
|
||||
}
|
||||
kcmb_plcAlarmHandleResult.Items.Clear();
|
||||
foreach (DataRow item in _ComboBoxLanguageTextList.GetComBoboxItemArr(kcmb_plcAlarmHandleResult.Name, "KryptonComboBox"))
|
||||
{
|
||||
kcmb_plcAlarmHandleResult.Items.Add(item["CONTROL_NAME"].ToString());
|
||||
}
|
||||
kcmb_plcAlarmStatus.Items.Add(item);
|
||||
}
|
||||
kcmb_plcAlarmHandleResult.Items.Clear();
|
||||
foreach (string item in this.GetComBoboxItemArr(kcmb_plcAlarmHandleResult.Name, "KryptonComboBox"))
|
||||
{
|
||||
kcmb_plcAlarmHandleResult.Items.Add(item);
|
||||
}
|
||||
kcmb_plcAlarmStatus.SelectedIndex = 0;
|
||||
kcmb_plcAlarmHandleResult.SelectedIndex = 0;
|
||||
|
||||
Reference in New Issue
Block a user