From 351bdda734832d821a9764b0cde8be5d83c4ec50 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 01 十二月 2022 09:56:25 +0800 Subject: [PATCH] 2022年12月01日09:56:23 --- 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