From c7df85937f73fb347ee0b19e9c052d2d00a6df6c Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 18 九月 2020 13:58:19 +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