修复因语言字典缺失导致的界面报错

This commit is contained in:
kang
2022-05-17 11:19:58 +08:00
parent 2bc18cb082
commit 103708143e
13 changed files with 67 additions and 33 deletions

View File

@@ -48,15 +48,20 @@ namespace CleanMachineHMI.frmChild
{
InitControlEvent();
this.SetFormControlText();
var items = this.GetComBoboxItemArr(kcmb_plcItemType.Name);
if (items != null && items.Count > 0)
{
kcmb_plcItemType.Items.Clear();
foreach (string item in this.GetComBoboxItemArr(kcmb_plcItemType.Name))
foreach (string item in items)
{
kcmb_plcItemType.Items.Add(item);
}
}
items = this.GetComBoboxItemArr(kcmb_plcItemDataType.Name);
if (items != null && items.Count > 0)
{
kcmb_plcItemDataType.Items.Clear();
foreach (string item in this.GetComBoboxItemArr(kcmb_plcItemDataType.Name))
foreach (string item in items)
{
kcmb_plcItemDataType.Items.Add(item);
}