From 8f780c8ea5411f01f788d52bad7c9440d68eb349 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期一, 30 十二月 2019 13:35:01 +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