HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AcControlPage_AddIrButton.cs
@@ -133,6 +133,18 @@ //添加数据对象 AttributesStatus buttonObj = new AttributesStatus(); //防止key不唯一 var attrCount = control.attributes.Count; var keyString = "key" + attrCount; while (true) { if (control.attributes.Find((obj) => obj.key == keyString) == null) { break; } keyString = "key" + (++attrCount); } buttonObj.key = "key" + control.attributes.Count.ToString(); buttonObj.value = texts;