领胜LDS 键盘AOI检测项目
wells.liu
2020-07-10 0ec7f2e32c8c7ef62ab71c0a2f5bd015aef7d7fe
src/Bro.Common.Model/Model/IOItem.cs
@@ -113,7 +113,9 @@
            {
                item.IOItemSource.ForEach(i =>
                {
                    itemDict[i] = i.IODesc + "-" + i.IOType.GetEnumDescription() + "-" + i.IONum;
                    IODefinition temp = new IODefinition();
                    temp.DataFrom(i);
                    itemDict[temp] = (string.IsNullOrWhiteSpace(i.IODesc) ? i.IOPreStatement.GetEnumDescription() : i.IODesc) + "|" + i.IOType.GetEnumDescription() + "|" + i.IONum;
                });
                return new StandardValuesCollection(itemDict.Keys);
@@ -158,7 +160,7 @@
        /// <returns></returns>
        public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
        {
            var s = value.ToString().Split(new char[] { '-' }, StringSplitOptions.RemoveEmptyEntries);
            var s = value.ToString().Split(new char[] { '|' });
            if (s.Length == 3)
            {