| | |
| | | /// </summary>
|
| | | public bool CloseFormByClickBack = true;
|
| | | /// <summary>
|
| | | /// 调用AddForm函数时,是否自动调用ShowForm函数,,默认自动调用
|
| | | /// </summary>
|
| | | public bool AutoLoadShowFormMethord = true;
|
| | | /// <summary>
|
| | | /// 原来的滑动标识
|
| | | /// </summary>
|
| | | private bool oldScrollEnabled = false;
|
| | |
| | | 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
|
| | |
| | | //初始化界面框架
|
| | | this.InitForm();
|
| | |
|
| | | //执行ShowForm()方法
|
| | | this.LoadShowFormMethod(parameter);
|
| | | if (this.AutoLoadShowFormMethord == true)
|
| | | {
|
| | | //执行ShowForm()方法
|
| | | this.LoadShowFormMethod(parameter);
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|