HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-12-14 e90209beae6a4e822cecb18e6889f8bda23f630e
ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs
File was renamed from ZigbeeApp/Shared/Phone/Common/Base/EditorCommonForm.cs
@@ -1,6 +1,7 @@
using Shared.Phone.UserCenter;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Shared.Phone
{
@@ -102,14 +103,14 @@
            //TopMenuFrameLayout做成
            topMenuFrameLayout = new NormalFrameLayout();
            topMenuFrameLayout.Height = HdlControlResourse.TopMenuFrameHeight;
            topMenuFrameLayout.Height = ControlCommonResourse.TopMenuFrameHeight;
            topMenuFrameLayout.BackgroundColor = UserCenterColor.Current.TopFrameLayout;
            topMenuFrameLayout.Name = "topMenuFrameLayout";
            this.AddChidren(topMenuFrameLayout);
            //TopFrameLayout做成
            topFrameLayout = new NormalFrameLayout();
            topFrameLayout.Height = HdlControlResourse.TopFrameHeight;
            topFrameLayout.Height = ControlCommonResourse.TopFrameHeight;
            topFrameLayout.BackgroundColor = UserCenterColor.Current.TopFrameLayout;
            topFrameLayout.Y = topMenuFrameLayout.Bottom;
            topFrameLayout.Name = "topFrameLayout";
@@ -169,7 +170,7 @@
                bodyFrameLayout.RemoveAll();
            }
            bodyFrameLayout = new NormalFrameLayout();
            bodyFrameLayout.Height = HdlControlResourse.BodyFrameHeight;
            bodyFrameLayout.Height = ControlCommonResourse.BodyFrameHeight;
            bodyFrameLayout.Y = topFrameLayout.Bottom;
            bodyFrameLayout.BackgroundColor = UserCenterColor.Current.BodyFrameLayout;
            bodyFrameLayout.Name = "bodyFrameLayout";
@@ -189,7 +190,7 @@
        public override void AddForm(params object[] parameter)
        {
            //界面加载中
            HdlControlResourse.IsFormAdding = true;
            ControlCommonResourse.IsFormAdding = true;
            base.AddForm(parameter);
@@ -209,7 +210,7 @@
            this.LoadShowFormMethod(parameter);
            //界面加载结束
            HdlControlResourse.IsFormAdding = false;
            ControlCommonResourse.IsFormAdding = false;
        }
        #endregion
@@ -253,7 +254,7 @@
            bodyFrameLayout.AddChidren(btnHelp);
            //底线
            int lineWidth = btnHelp.GetRealWidthByText();
            var btnLine = new NormalViewControl(lineWidth, HdlControlResourse.BottomLineHeight, false);
            var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
            btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
            btnLine.Gravity = Gravity.CenterHorizontal;
            btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8);
@@ -291,6 +292,9 @@
                frame.AddChidren(btnReLoad);
                btnReLoad.ButtonClickEvent += (sender, e) =>
                {
                    //点击重新加载时,允许再次联网
                    HdlWifiLogic.Current.CanAccessHttp = true;
                    //清除全部控件
                    this.ClearBodyFrame();