黄学彪
2020-02-21 bd46c57c77c276014db3192a4e2cc96e23c93202
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>
@@ -147,6 +169,8 @@
        /// <param name="parameter">启动参数:参数由指定画面的ShowForm函数所指定</param>
        public override void AddForm(params object[] parameter)
        {
            base.AddForm(parameter);
            //检测能否追加画面
            if (UserCenterLogic.CheckCanAddForm(this) == false)
            {
@@ -172,11 +196,14 @@
        /// </summary>
        public override void CloseFormBefore()
        {
            base.CloseFormBefore();
            //左滑使能
            this.ScrollEnabled = true;
            this.m_parameter = null;
            //清空bodyFrame
            this.ClearBodyFrame();
            base.CloseFormBefore();
            this.ClearBodyFrame();
        }
        #endregion