From a45fe56aeeac8f28a9891b83362954067c8166dc Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期五, 14 八月 2020 09:07:05 +0800 Subject: [PATCH] 请合并新代码,更改多功能面板绑定表重复问题 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs index b0bca1d..1e70492 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/RowLayoutControls/DeviceFunctionTypeRowControl.cs @@ -111,7 +111,7 @@ var form = new BottomItemSelectForm(); form.CancelCallEvent = true;//鍏佽鍙栨秷 - form.AddForm(title, listText, nowSelectNo - 1); + form.AddForm(title, listText, null, nowSelectNo - 1); form.FinishSelectEvent += (selectNo) => { if (selectNo == nowSelectNo - 1) @@ -137,7 +137,7 @@ this.RefreshDfunctionType(); //璁惧鏀瑰彉鍔熻兘绫诲瀷鐨勮瘽,涓婚〉闇�瑕侀噸鏂板埛鏂� - UserView.UserPage.Instance.RefreshForm = true; + UserView.UserPage.Instance.RefreshAllForm = true; //璋冪敤鍥炶皟鍑芥暟 this.FinishSelectEvent?.Invoke(nowSelectNo); @@ -194,25 +194,29 @@ || this.device.Type == DeviceType.DimmableLight) { //鐏厜绫诲浐瀹氫负 鐏厜 - strType = Language.StringByID(R.MyInternationalizationString.uLight); + var infoContent = Common.LocalDevice.Current.GetDeviceModelIdNameInfo("A418"); + strType = infoContent != null ? infoContent.A瀹樻柟鍚嶅瓧 : string.Empty; nowSelectNo = 2; } else if (this.device.Type == DeviceType.WindowCoveringDevice) { //绐楀笜鍥哄畾涓� 閬槼 - strType = Language.StringByID(R.MyInternationalizationString.uDeviceBelongId100); + var infoContent = Common.LocalDevice.Current.GetDeviceModelIdNameInfo("A400"); + strType = infoContent != null ? infoContent.A瀹樻柟鍚嶅瓧 : string.Empty; nowSelectNo = -1; } else if (this.device.Type == DeviceType.Thermostat) { //绌鸿皟鍥哄畾涓� 绌鸿皟 - strType = Language.StringByID(R.MyInternationalizationString.uDeviceBelongId3600); + var infoContent = Common.LocalDevice.Current.GetDeviceModelIdNameInfo("A406"); + strType = infoContent != null ? infoContent.A瀹樻柟鍚嶅瓧 : string.Empty; nowSelectNo = -1; } else if (this.device.Type == DeviceType.DoorLock) { //闂ㄩ攣鍥哄畾涓� 闂ㄩ攣 - strType = Language.StringByID(R.MyInternationalizationString.uDeviceBelongId2800); + var infoContent = Common.LocalDevice.Current.GetDeviceModelIdNameInfo("A405"); + strType = infoContent != null ? infoContent.A瀹樻柟鍚嶅瓧 : string.Empty; nowSelectNo = -1; } else if (this.device.Type == DeviceType.FreshAir) -- Gitblit v1.8.0