From 1c2b6fa69a7002315d4b3ecb883c255c65eceafa Mon Sep 17 00:00:00 2001 From: lss <316519258@qq.com> Date: 星期三, 03 六月 2020 10:58:18 +0800 Subject: [PATCH] 2020.06.03 --- ZigbeeApp/Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundControlForm.cs | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundControlForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundControlForm.cs index 3a049d9..2a5d080 100644 --- a/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundControlForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundControlForm.cs @@ -49,8 +49,7 @@ this.InitMiddleFrame(); } - - + private void InitMiddleFrame() { @@ -87,7 +86,6 @@ // 鍔犺浇褰撳墠妤煎眰鐨勬墍鏈夋埧闂� ListView if (listView == null) { - listView = new VerticalListControl(); contentLayout.AddChidren(listView); listView.Y = Application.GetRealHeight(173); @@ -112,9 +110,14 @@ listView.AddChidren(roomRowLayout); roomRowLayout.InitControl(); + roomRowLayout.frameTable.ButtonClickEvent += (sender, e) => + { + var deviceChange = new SmartSoundContentForDeviceChange(room); + deviceChange.AddForm(); + }; + roomRowLayout.btnDelect.ButtonClickEvent += (sender, e) => { - try { var delBtn = sender as NormalViewControl; @@ -145,7 +148,6 @@ } }; } - } catch(Exception e) { @@ -270,8 +272,7 @@ this.smartSoundControlForm = _smartSoundControlForm; this.room = _room; this.BackgroundColor = UserCenterColor.Current.White; - this.Height = Application.GetRealHeight(173); - + this.Height = Application.GetRealHeight(173); } /// <summary> @@ -288,9 +289,9 @@ btnDelect = base.AddDeleteControl(); btnDelect.Text = "鍒犻櫎"; btnDelect.AddTag("obj", room); - } - #endregion } + + #endregion } } \ No newline at end of file -- Gitblit v1.8.0