From 4b378188ce972df432b23d9cb73babb6cc0679c6 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 17 一月 2020 14:56:15 +0800
Subject: [PATCH] 合并代码 ver.10086

---
 ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs b/ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs
index 0e42ff0..6916f59 100755
--- a/ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs
@@ -91,10 +91,10 @@
         /// </summary>
         public void Show()
         {
+            RemoveAll();
             InitData();
             AddTop();
             AddBodyView();
-
         }
 
         /// <summary>
@@ -123,7 +123,7 @@
             }
             foreach (var device in devList)
             {
-                var info = Common.LocalDevice.Current.GetDeviceBelongEnumInfo(device.CommonDevice);
+                var info = Common.LocalDevice.Current.GetDeviceBelongEnumInfo(device?.CommonDevice);
                 if (typeDeviceDic.ContainsKey(info.BeloneTextId) == false)
                 {
                     var sameDevList = new List<DeviceUI> { };
@@ -378,7 +378,7 @@
 
                 var deviceRow = new SelectFunctionView(0, 35);
                 deviceRow.Init(deviceUI.IconPath, deviceUI.OnlineIconPath);
-                deviceRow.SetTitle(deviceUI.CommonDevice.DeviceEpointName);
+                deviceRow.SetTitle(Common.LocalDevice.Current.GetDeviceEpointName(deviceUI.CommonDevice));
                 deviceTypeRowLayout.AddChidren(deviceRow);
 
                 EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
@@ -468,9 +468,9 @@
             add.MouseUpEventHandler += (sender, e) =>
             {
                 var selectZone = new SelectZone();
-                //AddChidren(selectZone);
+                selectZone.title = Language.StringByID(R.MyInternationalizationString.AddTo);
                 selectZone.Init();
-                selectZone.ZoneAction = (r) =>
+                selectZone.ZoneAction += (r) =>
                 {
                     foreach (var d in selectedList)
                     {
@@ -699,9 +699,9 @@
                 add.MouseUpEventHandler += (sender, e) =>
                 {
                     var selectZone = new SelectZone();
-                    //CommonPage.Instance.AddChidren(selectZone);
+                    selectZone.title = Language.StringByID(R.MyInternationalizationString.AddTo);
                     selectZone.Init();
-                    selectZone.ZoneAction = (r) =>
+                    selectZone.ZoneAction += (r) =>
                     {
                         foreach (var s in selectedList)
                         {

--
Gitblit v1.8.0