黄学彪
2019-10-10 2ed75b8b337048e5d75e6d9ec8307633134f02fd
ZigbeeApp/Shared/Phone/Device/Light/DimmableLightControl.cs
@@ -15,7 +15,7 @@
        ///// <summary>
        ///// The top view.
        ///// </summary>
        private CommonForm.TopFrameLayout topFL;
        private CommonForm.TopFrameLayout top;
        /// <summary>
        /// 更多设置
        /// </summary>
@@ -217,6 +217,8 @@
        {
            ZbGateway.StatusList.Remove(this);
            UserView.HomePage.Instance.ScrollEnabled = true;
            action();
            action = null;
            base.RemoveFromParent();
        }
@@ -286,8 +288,13 @@
        /// </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();
        }
@@ -306,7 +313,7 @@
                UnSelectedImagePath = "Item/More.png",
                SelectedImagePath = "Item/MoreSelected.png",
            };
            topFL.topView.AddChidren(moreBtn);
            top.topView.AddChidren(moreBtn);
            moreBtn.MouseUpEventHandler += MoreEvent;
        }
@@ -339,7 +346,7 @@
            midFL = new FrameLayout()
            {
                Height = Application.GetRealHeight(CommonPage.AppRealHeight - CommonPage.Navigation_Height),
                Y = topFL.Bottom,
                Y = top.Bottom,
                BackgroundColor = ZigbeeColor.Current.GXCBackgroundColor
            };
            AddChidren(midFL);
@@ -541,7 +548,6 @@
                Shared.Common.Room.Lists[0].AddDevice(device.FileName);
                collectionBtn.IsSelected = true;
            }
            action?.Invoke();
        }
        #endregion