From fdc47d950498e088260a3b04028703adc0f878e0 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期一, 30 三月 2020 10:54:27 +0800
Subject: [PATCH] 2020-03-30-1
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneSimpleSelectControl.cs | 21 ++++++---------------
1 files changed, 6 insertions(+), 15 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneSimpleSelectControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneSimpleSelectControl.cs
index 7637ca0..4f68e92 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneSimpleSelectControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/SceneControls/SceneSimpleSelectControl.cs
@@ -20,7 +20,7 @@
/// </summary>
public Common.SceneUI Scene
{
- get { return Common.Room.CurrentRoom.GetSceneUIBySceneId(SceneId); }
+ get { return HdlSceneLogic.Current.GetSceneUIBySceneId(SceneId); }
}
/// <summary>
/// 閫夋嫨鎺т欢
@@ -84,27 +84,18 @@
//鍥炬爣
var btnIcon = this.AddLeftIcon();
- btnIcon.UnSelectedImagePath = "Item/Scene.png";
+ btnIcon.UnSelectedImagePath = "Scene/SceneIcon.png";
//鍦烘櫙
- var btnScene = this.AddLeftCaption(SceneTemp.Name, 850, 60);
- btnScene.TextSize = 15;
- //杩欎釜鍧愭爣鏈夌偣鐗规畩
- btnScene.Y = Application.GetRealHeight(12) + this.chidrenYaxis;
- this.AddChidren(btnScene, ChidrenBindMode.BindEventOnly);
+ this.AddTopView(SceneTemp.Name, 850);
//鎴块棿
- string roomName = Common.Room.CurrentRoom.GetRoomNameBySceneId(SceneId);
- var btnRoom = this.AddLeftCaption(roomName, 850, 50, true);
- //杩欎釜鍧愭爣鏈夌偣鐗规畩
- btnRoom.Y = Application.GetRealHeight(72) + this.chidrenYaxis;
- btnRoom.TextSize = 12;
- btnRoom.TextColor = UserCenterColor.Current.TextGrayColor1;
- this.AddChidren(btnRoom, ChidrenBindMode.BindEventOnly);
+ string roomName = HdlRoomLogic.Current.GetRoomNameBySceneId(SceneId);
+ this.AddBottomView(roomName, 850);
btnSelect = this.AddMostRightEmptyIcon(58, 58);
btnSelect.Visible = false;
- btnSelect.UnSelectedImagePath = "Item/Tick.png";
+ btnSelect.UnSelectedImagePath = "Item/ItemSelected.png";
}
#endregion
--
Gitblit v1.8.0