黄学彪
2020-12-16 0d9f64668fd7350d6a21fd157e32009a96d98134
ZigbeeApp/Shared/Phone/Common/Base/EditorCommonForm.cs
File was renamed from ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs
@@ -1,13 +1,12 @@
using Shared.Phone.UserCenter;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Shared.Phone
{
    /// <summary>
    /// 个人中心的共通基层画面,继承于此共通的画面,请使用AddForm()函数,
    /// 或者AddFromAndRemoveNowForm()函数实现添加画面,然后在各自的画面中,
    /// 或者AddFormAndCloseNowForm()函数实现添加画面,然后在各自的画面中,
    /// 实现一个ShowForm()的函数(参数由添加画面时,使用的函数的参数指定)
    /// </summary>
    public class EditorCommonForm : CommonFormBase
@@ -103,14 +102,14 @@
            //TopMenuFrameLayout做成
            topMenuFrameLayout = new NormalFrameLayout();
            topMenuFrameLayout.Height = ControlCommonResourse.TopMenuFrameHeight;
            topMenuFrameLayout.Height = HdlControlResourse.TopMenuFrameHeight;
            topMenuFrameLayout.BackgroundColor = UserCenterColor.Current.TopFrameLayout;
            topMenuFrameLayout.Name = "topMenuFrameLayout";
            this.AddChidren(topMenuFrameLayout);
            //TopFrameLayout做成
            topFrameLayout = new NormalFrameLayout();
            topFrameLayout.Height = ControlCommonResourse.TopFrameHeight;
            topFrameLayout.Height = HdlControlResourse.TopFrameHeight;
            topFrameLayout.BackgroundColor = UserCenterColor.Current.TopFrameLayout;
            topFrameLayout.Y = topMenuFrameLayout.Bottom;
            topFrameLayout.Name = "topFrameLayout";
@@ -170,7 +169,7 @@
                bodyFrameLayout.RemoveAll();
            }
            bodyFrameLayout = new NormalFrameLayout();
            bodyFrameLayout.Height = ControlCommonResourse.BodyFrameHeight;
            bodyFrameLayout.Height = HdlControlResourse.BodyFrameHeight;
            bodyFrameLayout.Y = topFrameLayout.Bottom;
            bodyFrameLayout.BackgroundColor = UserCenterColor.Current.BodyFrameLayout;
            bodyFrameLayout.Name = "bodyFrameLayout";
@@ -190,7 +189,7 @@
        public override void AddForm(params object[] parameter)
        {
            //界面加载中
            ControlCommonResourse.IsFormAdding = true;
            HdlControlResourse.IsFormAdding = true;
            base.AddForm(parameter);
@@ -210,7 +209,7 @@
            this.LoadShowFormMethod(parameter);
            //界面加载结束
            ControlCommonResourse.IsFormAdding = false;
            HdlControlResourse.IsFormAdding = false;
        }
        #endregion
@@ -254,7 +253,7 @@
            bodyFrameLayout.AddChidren(btnHelp);
            //底线
            int lineWidth = btnHelp.GetRealWidthByText();
            var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
            var btnLine = new NormalViewControl(lineWidth, HdlControlResourse.BottomLineHeight, false);
            btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
            btnLine.Gravity = Gravity.CenterHorizontal;
            btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8);
@@ -292,9 +291,6 @@
                frame.AddChidren(btnReLoad);
                btnReLoad.ButtonClickEvent += (sender, e) =>
                {
                    //点击重新加载时,允许再次联网
                    HdlWifiLogic.Current.CanAccessHttp = true;
                    //清除全部控件
                    this.ClearBodyFrame();