From 224ea4055d5359d0bae0e7087ccc11724a2e49e5 Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期二, 14 七月 2020 16:09:19 +0800 Subject: [PATCH] 备份新改的代码 --- ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs | 28 ++++++++++++++++------------ 1 files changed, 16 insertions(+), 12 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs index 1fced47..1412e6a 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/MutilfunctionPanelMethod.cs @@ -53,6 +53,14 @@ var bList = bindTargetsFromMutilfunctionPanelList[key]; foreach (var bDev in bList) { + if (curBindType == 0) + { + if (bDev.KeyEpoint >= 32 && bDev.KeyEpoint <= 51) + { + tempList.Add(bDev); + } + } + var device = LocalDevice.Current.GetDevice(bDev.BindMacAddr, bDev.BindEpoint); if (device == null) { @@ -60,12 +68,6 @@ } switch (curBindType) { - case 0: - if (bDev.KeyEpoint >= 32 && bDev.KeyEpoint <= 51) - { - tempList.Add(bDev); - } - break; case 1: if (bDev.KeyEpoint >= 52 && bDev.KeyEpoint <= 61) { @@ -225,6 +227,14 @@ var bList = bindTargetsFromMutilfunctionPanelList[key]; foreach (var bDev in bList) { + if (curBindType == 0) + { + if (bDev.KeyEpoint >= 32 && bDev.KeyEpoint <= 51) + { + tempList.Remove(bDev.KeyEpoint); + } + } + var device = LocalDevice.Current.GetDevice(bDev.BindMacAddr, bDev.BindEpoint); if (device == null) { @@ -232,12 +242,6 @@ } switch (curBindType) { - case 0: - if (bDev.KeyEpoint >= 32 && bDev.KeyEpoint <= 51) - { - tempList.Remove(bDev.KeyEpoint); - } - break; case 1: case 2: if (bDev.KeyEpoint >= 52 && bDev.KeyEpoint <= 61) -- Gitblit v1.8.0