| | |
| | | /// 原来的滑动标识
|
| | | /// </summary>
|
| | | private bool oldScrollEnabled = false;
|
| | | /// <summary>
|
| | | /// 原来的那个圆形进度条是否可见
|
| | | /// </summary>
|
| | | private bool oldPrigressVisible = false;
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | this.oldScrollEnabled = UserView.HomePage.Instance.ScrollEnabled;
|
| | | UserView.HomePage.Instance.ScrollEnabled = false;
|
| | | Shared.Common.CommonPage.BackKeyCanClick = false;
|
| | | this.oldPrigressVisible = Common.CommonPage.Loading.Visible;
|
| | | if (oldPrigressVisible == true)
|
| | | {
|
| | | //圆形进度条临时关闭
|
| | | Common.CommonPage.Loading.Hide();
|
| | | }
|
| | |
|
| | | //容器
|
| | | bodyFrameLayout = new FrameLayout();
|
| | |
| | | /// </summary>
|
| | | /// <param name="value">进度值,内部会除以maxValue</param>
|
| | | /// <param name="maxValue">最大值</param>
|
| | | public void SetValue2(decimal value, decimal maxValue)
|
| | | public void SetValue(decimal value, decimal maxValue)
|
| | | {
|
| | | decimal result = value / maxValue;
|
| | | this.SetValueEx(result);
|
| | |
| | | /// <param name="value"></param>
|
| | | private void SetValueEx(decimal value)
|
| | | {
|
| | | if (btnProgressBar == null)
|
| | | {
|
| | | return;
|
| | | }
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | int width = (int)(value * ProRowWidth);
|
| | |
| | | /// </summary>
|
| | | public void Close()
|
| | | {
|
| | | if (this.oldScrollEnabled == true)
|
| | | {
|
| | | //如果它原来就是不可以滑动的话,不处理
|
| | | UserView.HomePage.Instance.ScrollEnabled = true;
|
| | | }
|
| | | Shared.Common.CommonPage.BackKeyCanClick = true;
|
| | |
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | if (this.oldScrollEnabled == true)
|
| | | {
|
| | | //如果它原来就是不可以滑动的话,不处理
|
| | | UserView.HomePage.Instance.ScrollEnabled = true;
|
| | | }
|
| | | Shared.Common.CommonPage.BackKeyCanClick = true;
|
| | | if (this.oldPrigressVisible == true)
|
| | | {
|
| | | //如果原来的进度条是可见的话,还原回去
|
| | | Common.CommonPage.Loading.Start(Common.CommonPage.Loading.Text);
|
| | | }
|
| | |
|
| | | bodyFrameLayout?.RemoveFromParent();
|
| | | bodyFrameLayout = null;
|
| | | btnText = null;
|