黄学彪
2020-09-23 c0ce2f57a4f836ebeb9e7b8b4b5a4407fd78dc86
ZigbeeApp/Shared/Phone/CommonForm/DialogCommonForm.cs
@@ -21,6 +21,10 @@
        /// </summary>
        public bool CloseFormByClickBack = true;
        /// <summary>
        /// 调用AddForm函数时,是否自动调用ShowForm函数,,默认自动调用
        /// </summary>
        public bool AutoLoadShowFormMethord = true;
        /// <summary>
        /// 原来的滑动标识
        /// </summary>
        private bool oldScrollEnabled = false;
@@ -43,14 +47,14 @@
            bodyFrameLayout.BackgroundColor = UserCenterColor.Current.DialogBackColor;
            this.AddChidren(bodyFrameLayout);
            if (CloseFormByClickBack == true)
            bodyFrameLayout.MouseUpEventHandler += (sender, e) =>
            {
                bodyFrameLayout.MouseUpEventHandler += (sender, e) =>
                if (CloseFormByClickBack == true)
                {
                    //关闭自身
                    this.CloseForm();
                };
            }
                }
            };
        }
        #endregion
@@ -82,8 +86,11 @@
            //初始化界面框架
            this.InitForm();
            //执行ShowForm()方法
            this.LoadShowFormMethod(parameter);
            if (this.AutoLoadShowFormMethord == true)
            {
                //执行ShowForm()方法
                this.LoadShowFormMethod(parameter);
            }
        }
        #endregion