From 29ad4a8b821fa21499191477781b11489ac6a267 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 14 九月 2023 11:22:17 +0800
Subject: [PATCH] 隐藏通用开关
---
HDL_ON/Common/ApiUtlis.cs | 38 +++++++++++++++++++++++++++++++-------
1 files changed, 31 insertions(+), 7 deletions(-)
diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs
index e6f4a51..c04aa5a 100644
--- a/HDL_ON/Common/ApiUtlis.cs
+++ b/HDL_ON/Common/ApiUtlis.cs
@@ -106,8 +106,16 @@
{
if (waitPage != null)
{
- waitPage.RemoveFromParent();
- waitPage = null;
+ Application.RunOnMainThread(() =>
+ {
+ try
+ {
+ waitPage.Hide();
+ waitPage.RemoveFromParent();
+ waitPage = null;
+ }
+ catch { }
+ });
}
MainPage.Log($"鍒锋柊token澶辫触");
return;
@@ -119,8 +127,16 @@
{
if (waitPage != null)
{
- waitPage.RemoveFromParent();
- waitPage = null;
+ Application.RunOnMainThread(() =>
+ {
+ try
+ {
+ waitPage.Hide();
+ waitPage.RemoveFromParent();
+ waitPage = null;
+ }
+ catch { }
+ });
}
MainPage.Log($"鍒锋柊浣忓畢淇℃伅澶辫触");
return;
@@ -132,8 +148,16 @@
{
if (waitPage != null)
{
- waitPage.RemoveFromParent();
- waitPage = null;
+ Application.RunOnMainThread(() =>
+ {
+ try
+ {
+ waitPage.Hide();
+ waitPage.RemoveFromParent();
+ waitPage = null;
+ }
+ catch { }
+ });
}
MainPage.Log($"鍒锋柊涓汉淇℃伅澶辫触");
return;
@@ -193,7 +217,7 @@
FunctionList.List.ClearDatas();
//MainPage.Log($"============璁惧============寮�濮�" + FunctionList.List.Functions.Count);
//MainPage.Log($"璇诲彇璁惧淇℃伅鎴愬姛");
- MainPage.Log($"sid鍒楄〃鑾峰彇====" + deviceResult.Data.ToString());
+ MainPage.Log($"sid鍒楄〃鑾峰彇====\r\n" , deviceResult.Data.ToString());
var deviceList = JsonConvert.DeserializeObject<DevcieApiPack>(deviceResult.Data.ToString());
if (deviceList == null)
{
--
Gitblit v1.8.0