From fa6bcb2e9907772480f99205f36ec2a1ce735a22 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 09 一月 2020 14:11:07 +0800 Subject: [PATCH] 合并代码 --- ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs b/ZigbeeApp/Shared/Phone/Device/Room/UnallocatedRoom.cs index 5ddbd8b..055670f 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> @@ -250,7 +250,7 @@ public void RefreshBodyView() { functionSceneBodyView.RemoveAll(); - + if (functionBtn.IsSelected) { ShowFunction(); @@ -305,7 +305,7 @@ Width = Application.GetRealWidth(1028) }; functionSceneBodyView.AddChidren(functionTypeScrowView); - + deviceListScrolView = new VerticalScrolViewLayout { X = Application.GetRealWidth(CommonFormResouce.X_Left), @@ -468,16 +468,16 @@ 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) { r.AddDevice(d.CommonDevice, true); deviceListScrolView.RemoveViewByTag(d); } - + if (sameTypeList.Count == selectedList.Count) { RefreshData(); @@ -656,7 +656,7 @@ var frame = sceneScrolView.GetChildren(i) as FrameLayout; (frame.GetChildren(1) as Button).IsSelected = (sender as Button).IsSelected; } - + if ((sender as Button).IsSelected) { (sender as Button).TextID = R.MyInternationalizationString.Cancel; @@ -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