From 23fb45dd846ed8b62304c408c6bbe64265d4ac8b Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 20 十二月 2019 18:57:16 +0800
Subject: [PATCH] 代码合并

---
 ZigbeeApp/Shared/Phone/UserCenter/Safety/AlarmTargetAddMenuForm.cs |   43 +++++--------------------------------------
 1 files changed, 5 insertions(+), 38 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Safety/AlarmTargetAddMenuForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Safety/AlarmTargetAddMenuForm.cs
index 3a1f691..5b2ab68 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Safety/AlarmTargetAddMenuForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Safety/AlarmTargetAddMenuForm.cs
@@ -289,45 +289,12 @@
                     string selectPath = string.Empty;
 
                     var typeInfo = Common.LocalDevice.Current.GetNotHdlMyDeviceEnumInfo(new List<CommonDevice>() { device });
-                    if (device.Type == DeviceType.OnOffOutput)
+                    //鑾峰彇鍥剧墖
+                    Common.LocalDevice.Current.GetDeviceBeloneIcon(typeInfo.ConcreteType, ref unSelectPath, ref selectPath);
+                    if (dicRoomData.ContainsKey(typeInfo.BeloneTextId) == false)
                     {
-                        //缁х數鍣ㄧ殑鏃跺��,闇�瑕佺壒娈婂鐞�
-                        if (device.DfunctionType == DeviceFunctionType.A寮�鍏�)
-                        {
-                            typeInfo.BeloneTextId = R.MyInternationalizationString.uSwitch;
-                            unSelectPath = "Device/Switch.png";
-                        }
-                        else if (device.DfunctionType == DeviceFunctionType.A鎻掑骇)
-                        {
-                            typeInfo.BeloneTextId = R.MyInternationalizationString.uSocket1;
-                            unSelectPath = "Device/Socket1.png";
-                        }
-                        else if (device.DfunctionType == DeviceFunctionType.A鐏厜)
-                        {
-                            typeInfo.BeloneTextId = R.MyInternationalizationString.uLight;
-                            unSelectPath = "Device/Light.png";
-                        }
-                        else
-                        {
-                            //缁х數鍣�
-                            typeInfo.BeloneTextId = R.MyInternationalizationString.uDeviceBelongId2300;
-                            unSelectPath = "Device/Relay.png";
-                        }
-                        if (dicRoomData.ContainsKey(typeInfo.BeloneTextId) == false)
-                        {
-                            dicRoomData[typeInfo.BeloneTextId] = new uRowInformation();
-                            dicRoomData[typeInfo.BeloneTextId].IconPath = unSelectPath;
-                        }
-                    }
-                    else
-                    {
-                        //鑾峰彇鍥剧墖
-                        Common.LocalDevice.Current.GetDeviceBeloneIcon(typeInfo.ConcreteType, ref unSelectPath, ref selectPath);
-                        if (dicRoomData.ContainsKey(typeInfo.BeloneTextId) == false)
-                        {
-                            dicRoomData[typeInfo.BeloneTextId] = new uRowInformation();
-                            dicRoomData[typeInfo.BeloneTextId].IconPath = unSelectPath;
-                        }
+                        dicRoomData[typeInfo.BeloneTextId] = new uRowInformation();
+                        dicRoomData[typeInfo.BeloneTextId].IconPath = unSelectPath;
                     }
                     dicRoomData[typeInfo.BeloneTextId].listDevice.Add(device);
                 }

--
Gitblit v1.8.0