黄学彪
2020-03-06 a5b3c4bae726ef6770d4bfcbf2f4b50a37ed4a15
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/EditorCommonForm.cs
@@ -26,6 +26,25 @@
        /// </summary>
        public FrameLayout bodyFrameLayout = null;
        /// <summary>
        /// 左滑使能
        /// </summary>
        private bool m_ScrollEnabled = true;
        /// <summary>
        /// 左滑使能
        /// </summary>
        public bool ScrollEnabled
        {
            get { return m_ScrollEnabled; }
            set
            {
                if (UserView.HomePage.Instance.ScrollEnabled != value)
                {
                    UserView.HomePage.Instance.ScrollEnabled = value;
                    this.m_ScrollEnabled = value;
                }
            }
        }
        /// <summary>
        /// 缓存启动参数
        /// </summary>
        private object[] m_parameter = null;
@@ -46,6 +65,9 @@
            //初始化中部控件
            this.InitBodyFrameLayout();
            //初始左滑使能可
            this.ScrollEnabled = true;
        }
        /// <summary>
@@ -89,6 +111,12 @@
            topFrameLayout.Name = "topFrameLayout";
            this.AddChidren(topFrameLayout);
            //线
            var btnLine = new NormalViewControl(topFrameLayout.Width, 1, false);
            btnLine.BackgroundColor = 0x40000000;
            btnLine.Y = topFrameLayout.Height - 1;
            topFrameLayout.AddChidren(btnLine);
            //返回键
            var btnBack = new BackViewControl();
            topFrameLayout.AddChidren(btnBack);
@@ -101,8 +129,18 @@
            topFrameLayout.AddTag("btnBack", btnBack);
            //标题
            var txttitle = new TopLayoutTitleControl();
            var txttitle = new Button();
            txttitle.Name = "txtTitle";
            txttitle.TextSize = 17;
            txttitle.X = Application.GetRealWidth(161);
            txttitle.Height = Application.GetRealHeight(69);
            txttitle.Width = Application.GetRealWidth(850);
            txttitle.Gravity = Gravity.CenterVertical;
            txttitle.TextColor = UserCenterColor.Current.TopLayoutTitleText;
            txttitle.TextAlignment = TextAlignment.CenterLeft;
            txttitle.IsBold = true;
            topFrameLayout.AddChidren(txttitle);
            topFrameLayout.AddTag("txtTitle", txttitle);
        }
@@ -139,6 +177,8 @@
        /// <param name="parameter">启动参数:参数由指定画面的ShowForm函数所指定</param>
        public override void AddForm(params object[] parameter)
        {
            base.AddForm(parameter);
            //检测能否追加画面
            if (UserCenterLogic.CheckCanAddForm(this) == false)
            {
@@ -162,13 +202,16 @@
        /// <summary>
        /// 画面关闭
        /// </summary>
        public override void CloseForm()
        public override void CloseFormBefore()
        {
            base.CloseFormBefore();
            //左滑使能
            this.ScrollEnabled = true;
            this.m_parameter = null;
            //清空bodyFrame
            this.ClearBodyFrame();
            base.CloseForm();
            this.ClearBodyFrame();
        }
        #endregion
@@ -252,7 +295,7 @@
            btnHelp.Text = Language.StringByID(R.MyInternationalizationString.uSearchHelp);
            bodyFrameLayout.AddChidren(btnHelp);
            //底线
            int lineWidth = btnHelp.GetRealWidthByText(12);
            int lineWidth = btnHelp.GetRealWidthByText();
            var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
            btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
            btnLine.Gravity = Gravity.CenterHorizontal;