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/MainPage/Controls/SafetyShortcutControl.cs |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/MainPage/Controls/SafetyShortcutControl.cs b/ZigbeeApp/Shared/Phone/MainPage/Controls/SafetyShortcutControl.cs
index 38484ea..48e8efd 100755
--- a/ZigbeeApp/Shared/Phone/MainPage/Controls/SafetyShortcutControl.cs
+++ b/ZigbeeApp/Shared/Phone/MainPage/Controls/SafetyShortcutControl.cs
@@ -21,8 +21,8 @@
         /// </summary>
         public SafetyShortcutControl()
         {
-            this.Height = Application.GetMinRealAverage(69);
-            this.Width = Application.GetMinRealAverage(69);
+            this.Height = HdlControlLogic.Current.GetPictrueRealSize(69);
+            this.Width = HdlControlLogic.Current.GetPictrueRealSize(69);
             this.UnSelectedImagePath = "Item/SafetyShortcut.png";
             this.MouseUpEventHandler += (sender, e) =>
             {
@@ -75,7 +75,7 @@
                     return;
                 }
                 //鏄惁璁剧疆鏈夊唴閮ㄩ槻鍖�
-                Application.RunOnMainThread(() =>
+                HdlThreadLogic.Current.RunMain(() =>
                 {
                     RefreshSafeZone(bg1, HdlSafeguardLogic.Current.IsHadInternalDefenseArea());
                 });
@@ -127,7 +127,7 @@
                 new System.Threading.Thread(async () =>
                 {
                     var result = await HdlSafeguardLogic.Current.SetSafetyGarrisonByModel(GarrisonMode.AtHome);
-                    Application.RunOnMainThread(() =>
+                    HdlThreadLogic.Current.RunMain(() =>
                     {
                         CommonPage.Loading.Hide();
                         if (result == GarrisonMode.AtHome)
@@ -166,7 +166,7 @@
                 new System.Threading.Thread(async () =>
                 {
                     var result = await HdlSafeguardLogic.Current.RemoveSafetyGarrison(GarrisonMode.RemoveGarrison, true);
-                    Application.RunOnMainThread(() =>
+                    HdlThreadLogic.Current.RunMain(() =>
                     {
                         CommonPage.Loading.Hide();
                         if (result == 1)
@@ -208,7 +208,7 @@
                 new System.Threading.Thread(async () =>
                 {
                     var result = await HdlSafeguardLogic.Current.SetSafetyGarrisonByModel(GarrisonMode.AtHome);
-                    Application.RunOnMainThread(() =>
+                    HdlThreadLogic.Current.RunMain(() =>
                     {
                         CommonPage.Loading.Hide();
                         if (result == GarrisonMode.AtHome)
@@ -244,7 +244,7 @@
                 new System.Threading.Thread(async () =>
                 {
                     var result = await HdlSafeguardLogic.Current.SetSafetyGarrisonByModel(GarrisonMode.RemoveHome);
-                    Application.RunOnMainThread(() =>
+                    HdlThreadLogic.Current.RunMain(() =>
                     {
                         CommonPage.Loading.Hide();
                         if (result == GarrisonMode.RemoveHome)
@@ -280,7 +280,7 @@
                 new System.Threading.Thread(async () =>
                 {
                     var result = await HdlSafeguardLogic.Current.RemoveSafetyGarrison(GarrisonMode.RemoveGarrison, true);
-                    Application.RunOnMainThread(() =>
+                    HdlThreadLogic.Current.RunMain(() =>
                     {
                         CommonPage.Loading.Hide();
                         if (result == 1)

--
Gitblit v1.8.0