| | |
| | | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using HDL_ON.Entity; |
| | | using HDL_ON.UI.CSS; |
| | | using Shared; |
| | |
| | | { |
| | | if (bodyView != null) |
| | | { |
| | | bodyView.RemoveAll(); |
| | | LoadPage(); |
| | | try |
| | | { |
| | | bodyView.RemoveAll(); |
| | | LoadPage(); |
| | | }catch (Exception ex) |
| | | { |
| | | MainPage.Log($"RoomPage ReloadPage error :\r\n {ex.Message}"); |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | bodyView.AddChidren(functionListView); |
| | | |
| | | var list = room.GetRoomFunctions(false); |
| | | |
| | | |
| | | foreach (var function in list) |
| | | { |
| | |
| | | } |
| | | else |
| | | { |
| | | |
| | | var functionDiv = new FunctionControlZone(function, () => |
| | | { |
| | | this.ReLoadPage(); |
| | | this.ReLoadPage(); //删除设备后重新刷新UI |
| | | }) |
| | | { |
| | | Gravity = Gravity.CenterHorizontal, |