HDL Home App 第二版本 旧平台金堂用 正在使用
wjc
2022-12-01 351bdda734832d821a9764b0cde8be5d83c4ec50
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)