| | |
| | | ///// <summary> |
| | | ///// The top view. |
| | | ///// </summary> |
| | | private CommonForm.TopFrameLayout topFL; |
| | | private CommonForm.TopFrameLayout top; |
| | | /// <summary> |
| | | /// 更多设置 |
| | | /// </summary> |
| | |
| | | { |
| | | ZbGateway.StatusList.Remove(this); |
| | | UserView.HomePage.Instance.ScrollEnabled = true; |
| | | action(); |
| | | action = null; |
| | | base.RemoveFromParent(); |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | private void AddTopView() |
| | | { |
| | | topFL = new CommonForm.TopFrameLayout(this) { }; |
| | | AddChidren(topFL); |
| | | top = new CommonForm.TopFrameLayout(); |
| | | AddChidren(top); |
| | | top.InitTopview(); |
| | | top.backButton.MouseUpEventHandler += (sender, e) => |
| | | { |
| | | RemoveFromParent(); |
| | | }; |
| | | |
| | | AddMoreview(); |
| | | } |
| | |
| | | UnSelectedImagePath = "Item/More.png", |
| | | SelectedImagePath = "Item/MoreSelected.png", |
| | | }; |
| | | topFL.topView.AddChidren(moreBtn); |
| | | top.topView.AddChidren(moreBtn); |
| | | moreBtn.MouseUpEventHandler += MoreEvent; |
| | | } |
| | | |
| | |
| | | midFL = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(CommonPage.AppRealHeight - CommonPage.Navigation_Height), |
| | | Y = topFL.Bottom, |
| | | Y = top.Bottom, |
| | | BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor |
| | | }; |
| | | AddChidren(midFL); |
| | |
| | | Shared.Common.Room.Lists[0].AddDevice(device.FileName); |
| | | collectionBtn.IsSelected = true; |
| | | } |
| | | action?.Invoke(); |
| | | } |
| | | |
| | | #endregion |