| | |
| | | this.InitMiddleFrame(); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | private void InitMiddleFrame() |
| | | { |
| | | |
| | |
| | | // 加载当前楼层的所有房间 ListView |
| | | if (listView == null) |
| | | { |
| | | |
| | | listView = new VerticalListControl(); |
| | | contentLayout.AddChidren(listView); |
| | | listView.Y = Application.GetRealHeight(173); |
| | |
| | | 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; |
| | |
| | | } |
| | | }; |
| | | } |
| | | |
| | | } |
| | | catch(Exception e) |
| | | { |
| | |
| | | this.smartSoundControlForm = _smartSoundControlForm; |
| | | this.room = _room; |
| | | this.BackgroundColor = UserCenterColor.Current.White; |
| | | this.Height = Application.GetRealHeight(173); |
| | | |
| | | this.Height = Application.GetRealHeight(173); |
| | | } |
| | | |
| | | /// <summary>
|
| | |
| | | btnDelect = base.AddDeleteControl(); |
| | | btnDelect.Text = "删除"; |
| | | btnDelect.AddTag("obj", room); |
| | | |
| | | } |
| | | #endregion |
| | | } |
| | | |
| | | #endregion |
| | | } |
| | | } |