黄学彪
2019-11-25 160785587667cc0d927f85e44c139ec9dde13a9e
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/DialogCommonForm.cs
@@ -9,11 +9,11 @@
    /// </summary>
    public class DialogCommonForm : CommonFormBase
    {
        #region ■ 变量声明___________________________
        /// <summary>
        /// bodyFrameLayout
        /// </summary>
        #region ■ 变量声明___________________________
        /// <summary>
        /// bodyFrameLayout
        /// </summary>
        public FrameLayout bodyFrameLayout = null;
        /// <summary>
        /// 点击背景的时候,关闭界面
@@ -26,20 +26,20 @@
        #endregion
        #region ■ 初始化_____________________________
        #region ■ 初始化_____________________________
        /// <summary>
        /// 初始化界面框架
        /// </summary>
        public override void InitForm()
        /// <summary>
        /// 初始化界面框架
        /// </summary>
        public override void InitForm()
        {
            this.oldScrollEnabled = UserView.HomePage.Instance.ScrollEnabled;
            UserView.HomePage.Instance.ScrollEnabled = false;
            base.InitForm();
            bodyFrameLayout = new FrameLayout();
            bodyFrameLayout.BackgroundColor = UserCenterColor.Current.DialogBackColor;
            UserView.HomePage.Instance.ScrollEnabled = false;
            base.InitForm();
            bodyFrameLayout = new FrameLayout();
            bodyFrameLayout.BackgroundColor = UserCenterColor.Current.DialogBackColor;
            this.AddChidren(bodyFrameLayout);
            if (CloseFormByClickBack == true)
@@ -49,7 +49,7 @@
                    //关闭自身
                    this.CloseForm();
                };
            }
            }
        }
        #endregion
@@ -62,10 +62,10 @@
        /// <param name="parameter">启动参数:参数由指定画面的ShowForm函数所指定</param>
        public override void AddForm(params object[] parameter)
        {
            //检测能否追加画面
            if (UserCenterLogic.CheckCanAddForm(this) == false)
            {
                return;
            //检测能否追加画面
            if (UserCenterLogic.CheckCanAddForm(this) == false)
            {
                return;
            }
            var nowForm = UserView.HomePage.Instance.GetChildren(UserView.HomePage.Instance.ChildrenCount - 1);
            if (nowForm == null || (nowForm is ViewGroup) == false)
@@ -90,7 +90,7 @@
        /// <summary>
        /// 关闭界面
        /// </summary>
        public override void CloseForm()
        public override void CloseFormBefore()
        {
            if (this.oldScrollEnabled == true)
            {
@@ -98,7 +98,7 @@
                UserView.HomePage.Instance.ScrollEnabled = true;
            }
            base.CloseForm();
            base.CloseFormBefore();
        }
        #endregion