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/Device/Bind/AddScenePage.cs | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddScenePage.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddScenePage.cs index 584adc1..2d29c23 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddScenePage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/AddScenePage.cs @@ -67,7 +67,6 @@ var btnAddFrameLayout = new FrameLayout { X = Application.GetRealWidth(830), - Width = Application.GetRealWidth(200), }; this.titleFrameLayout.AddChidren(btnAddFrameLayout); @@ -95,6 +94,14 @@ { SideslipFramelayout(); }; + if (Common.Config.Instance.Home.FloorDics.Count == 0) + { + btnAddFrameLayout.Width = 0; + } + else + { + btnAddFrameLayout.Width = Application.GetRealWidth(200); + } MidFrameLayoutContent(btnFloorText); } @@ -194,7 +201,7 @@ Shared.Common.Room curRoom = roomList[0]; int index = 0; RefreshRoomList(curRoom, ref index); - RefreshSceneList(roomList[index]); + //RefreshSceneList(roomList[index]); if (curRoom.SceneUIList.Count == 0) { @@ -567,8 +574,8 @@ Y = Application.GetMinRealAverage(46), Width = Application.GetMinRealAverage(81), Height = Application.GetMinRealAverage(81), - UnSelectedImagePath = "Scene/SceneIcon.png" - }; + UnSelectedImagePath = "Scene/SceneIcon.png",// scene.IconPath, + }; rowLayout.AddChidren(devicePic); var btnBindName = new Button() -- Gitblit v1.8.0