From 58d4ef9af9c906acf2e9f65a3e65092363c8e1cd Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 24 八月 2023 17:42:49 +0800
Subject: [PATCH] 2023年08月24日17:42:25

---
 HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs |   34 ++++++++++++++++++----------------
 1 files changed, 18 insertions(+), 16 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs b/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs
index efdd128..4080a14 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs
@@ -465,6 +465,7 @@
 
                 EventHandler<MouseEventArgs> ClickEvent = (sener, e) =>
                 {
+
                     new HDL_ON.UI.Music.View.TipView().TipBox(-1, StringId.AreYouSureToDeleteThisDevice, () =>
                     {
                         UI2.FuntionControlView.VideoDoorLock.VideDoorLockSend.Current.DelDevice(this.function, (isBool) =>
@@ -521,7 +522,7 @@
                     TextAlignment = TextAlignment.Center,
                     TextColor = CSS_Color.WarningColor,
                     TextSize = CSS_FontSize.SubheadingFontSize,
-                    TextID = StringId.DeleteDevice,
+                    TextID = StringId.jiebangshebei,
                     Radius = (uint)Application.GetRealWidth(22),
                     BackgroundColor = CSS_Color.MainBackgroundColor,
                 };
@@ -529,29 +530,30 @@
 
                 EventHandler<MouseEventArgs> ClickEvent = (sener, e) =>
                 {
+
                     new HDL_ON.UI.Music.View.TipView().TipBox(-1, StringId.AreYouSureToDeleteThisDevice, () =>
                     {
-                    HDL_ON.UI.UI2.FuntionControlView.HisenseTV.Send.Current.DelDevice(this.function.deviceId, (isBool) =>
-                        {
-                            Application.RunOnMainThread(() =>
+                        HDL_ON.UI.UI2.FuntionControlView.HisenseTV.Send.Current.DelDevice(this.function.deviceId, (isBool) =>
                             {
-                                if (!isBool)
+                                Application.RunOnMainThread(() =>
                                 {
-                                    new Tip()
+                                    if (!isBool)
                                     {
-                                        CloseTime = 1,
-                                        Text = Language.StringByID(StringId.delFail),
-                                        Direction = AMPopTipDirection.None,
-                                    }.Show(bodyView);
-                                    return;
-                                }
+                                        new Tip()
+                                        {
+                                            CloseTime = 1,
+                                            Text = Language.StringByID(StringId.delFail),
+                                            Direction = AMPopTipDirection.None,
+                                        }.Show(bodyView);
+                                        return;
+                                    }
                                 //鍒犻櫎鏈湴鏂囦欢                                  
                                 UI2.FuntionControlView.VideoDoorLock.CommonMethod.Current.DeleteFunction(this.function);
-                                this.RemoveFromParent();
-                                this.actionDel?.Invoke();
-                            });
+                                    this.RemoveFromParent();
+                                    this.actionDel?.Invoke();
+                                });
 
-                        });
+                            });
 
                     });
                 };

--
Gitblit v1.8.0