From f23ad1b3f9f6193f35f72104d690b21dc67d5c1f Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 06 七月 2020 12:35:25 +0800
Subject: [PATCH] 去掉了访问外网的异步
---
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressBar.cs | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressBar.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressBar.cs
index a652601..7edeaa4 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressBar.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressBar.cs
@@ -38,13 +38,13 @@
public static void Show(string text = "")
{
m_value = 0;
- Application.RunOnMainThread(() =>
+ HdlThreadLogic.Current.RunMain(() =>
{
if (Common.CommonPage.Loading.Visible == false && notShow == false)
{
Common.CommonPage.Loading.Start(text);
}
- });
+ }, ShowErrorMode.NO);
}
/// <summary>
@@ -58,8 +58,8 @@
if (coerce == true)
{
notClose = false;
- }
- Application.RunOnMainThread(() =>
+ }
+ HdlThreadLogic.Current.RunMain(() =>
{
if (Common.CommonPage.Loading.Visible == true && notClose == false)
{
@@ -67,8 +67,8 @@
notShow = false;
notClose = false;
notSetValue = false;
- }
- });
+ }
+ }, ShowErrorMode.NO);
}
/// <summary>
@@ -113,12 +113,12 @@
if (notSetValue == true)
{
return;
- }
- Application.RunOnMainThread(() =>
+ }
+ HdlThreadLogic.Current.RunMain(() =>
{
//loading.Text = text;
- Common.CommonPage.Loading.Text = text + appendText;
- });
+ Common.CommonPage.Loading.Text = text + appendText;
+ }, ShowErrorMode.NO);
}
/// <summary>
--
Gitblit v1.8.0