去除每个页面的 语言datatable
This commit is contained in:
@@ -20,11 +20,7 @@ namespace CleanMachineHMI.frmChild
|
||||
public frmAddWaringMsg()
|
||||
{
|
||||
InitializeComponent();
|
||||
_ComboBoxLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode, "KryptonComboBox");
|
||||
_InfoLanguageTextList = this.GetInfoLanguageText(GlobalHelper.LanguageCode);
|
||||
}
|
||||
private DataTable _ComboBoxLanguageTextList;
|
||||
private DataTable _InfoLanguageTextList;
|
||||
private void txt_GotFocus(object sender, EventArgs e)
|
||||
{
|
||||
KeyboardAutoPopUp.ShowInputPanel();
|
||||
@@ -52,12 +48,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;
|
||||
|
||||
Reference in New Issue
Block a user