| | |
| | | { |
| | | Tag = "LockLogicList"; |
| | | } |
| | | VerticalScrolViewLayout middle; |
| | | public async void Show() |
| | | VerticalRefreshLayout middle; |
| | | public void Show() |
| | | { |
| | | |
| | | #region 最上面的布局代码 |
| | |
| | | }; |
| | | #endregion |
| | | |
| | | middle = new VerticalScrolViewLayout |
| | | middle = new VerticalRefreshLayout |
| | | { |
| | | Y = topRowLayout.Bottom, |
| | | Height = Application.GetRealHeight(1920 - 184), |
| | | BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor, |
| | | }; |
| | | this.AddChidren(middle); |
| | | middle.BeginHeaderRefreshingAction += () => |
| | | { |
| | | //重新刷新logic列表 |
| | | Common.Logic.LockLogicList.Clear(); |
| | | Read(); |
| | | //关闭刷新View; |
| | | middle.EndHeaderRefreshing(); |
| | | }; |
| | | Read(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 读取自动化数据 |
| | | /// </summary> |
| | | public async void Read() |
| | | { |
| | | CommonPage.Loading.Start(); |
| | | if (Common.Logic.LockLogicList.Count == 0) |
| | | { |
| | |
| | | } |
| | | } |
| | | } |
| | | //自动化 |
| | | Automationview(); |
| | | CommonPage.Loading.Hide(); |
| | | } |
| | | |
| | | void Automationview() |
| | | /// <summary> |
| | | /// 加载自动化列表的界面 |
| | | /// </summary> |
| | | public void Automationview() |
| | | { |
| | | middle.RemoveAll(); |
| | | for (int i = 0; i < Common.Logic.LockLogicList.Count; i++) |