From 0e4ad9a4de5b95f58daf1a6c5072c6a57cf223f9 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期一, 30 十二月 2019 10:02:10 +0800 Subject: [PATCH] 2019.12.30 --- ZigbeeApp/Shared/Phone/UserView/SafetyShortcutControl.cs | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserView/SafetyShortcutControl.cs b/ZigbeeApp/Shared/Phone/UserView/SafetyShortcutControl.cs index 48b85d8..b34e77b 100644 --- a/ZigbeeApp/Shared/Phone/UserView/SafetyShortcutControl.cs +++ b/ZigbeeApp/Shared/Phone/UserView/SafetyShortcutControl.cs @@ -117,13 +117,20 @@ dialog.Close(); return; } - new System.Threading.Thread(() => + CommonPage.Loading.Start(); + new System.Threading.Thread(async () => { - var result= HdlSafeguardLogic.Current.SetSafetyGarrisonByModel(GarrisonMode.AtHome); + var result=await HdlSafeguardLogic.Current.SetSafetyGarrisonByModel(GarrisonMode.AtHome); Application.RunOnMainThread(() => { + CommonPage.Loading.Hide(); dialog.Close(); + if(result == GarrisonMode.AtHome) + { + + } }); + }) { IsBackground = true }.Start(); }; -- Gitblit v1.8.0