From 1bc2df66bc88a6405df345dccc24a5031e18b592 Mon Sep 17 00:00:00 2001 From: patrick.xu <patrick.xu@broconcentric.com> Date: 星期一, 21 十二月 2020 09:54:48 +0800 Subject: [PATCH] 1. gocator添加byte2/byte4的配置,目前测试byte4不成功,暂时还是使用byte2配置。 2. 添加键名代码映射配置和NG键名代码上传功能 --- src/Bro.Common.Model/Selector/DeviceSelector.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Bro.Common.Model/Selector/DeviceSelector.cs b/src/Bro.Common.Model/Selector/DeviceSelector.cs index 1b289c8..34c25f7 100644 --- a/src/Bro.Common.Model/Selector/DeviceSelector.cs +++ b/src/Bro.Common.Model/Selector/DeviceSelector.cs @@ -3,13 +3,14 @@ using Bro.Common.Interface; using System.Collections; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; namespace Bro.Common.Model { - public class DeviceSelectorConverter<T> : ComboBoxItemTypeConvert where T : IDevice + public class DeviceSelectorConverter<T> : ComboBoxItemTypeConvert //where T : IDevice { - public override Hashtable GetConvertHash() + public override Hashtable GetConvertHash(ITypeDescriptorContext context) { Hashtable table = new Hashtable(); using (var scope = GlobalVar.Container.BeginLifetimeScope()) -- Gitblit v1.8.0