From e4ab7ba15864d2adb882646d8e09bd00effa4d1b Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期一, 21 八月 2023 17:12:11 +0800 Subject: [PATCH] 2023年08月21日17:12:02 --- HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs | 64 ++++++++++++++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs b/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs index 6622d1c..efdd128 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPage.cs @@ -498,6 +498,70 @@ } #endregion + + #region 鍒犻櫎娴蜂俊鐢佃璁惧 + if (this.function.spk == SPK.ElectricalTvHisense) + { + contentView.AddChidren(new Button() + { + Height = Application.GetRealWidth(8), + }); + + #region 鍒犻櫎璁惧琛� + contentView.AddChidren(new Button() + { + Height = Application.GetRealHeight(48), + }); + + var delTextBtn = new Button() + { + Gravity = Gravity.CenterHorizontal, + Width = Application.GetRealWidth(220), + Height = Application.GetRealWidth(44), + TextAlignment = TextAlignment.Center, + TextColor = CSS_Color.WarningColor, + TextSize = CSS_FontSize.SubheadingFontSize, + TextID = StringId.DeleteDevice, + Radius = (uint)Application.GetRealWidth(22), + BackgroundColor = CSS_Color.MainBackgroundColor, + }; + contentView.AddChidren(delTextBtn); + + 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(() => + { + if (!isBool) + { + 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(); + }); + + }); + + }); + }; + delTextBtn.MouseUpEventHandler = ClickEvent; + + #endregion + + + } + #endregion #if stage2 #region 娣诲姞鍒版闈� var addToDesktopView = new FrameLayout() -- Gitblit v1.8.0