From c1cb2d8c6034a2ee7aa8a5710bba15b14f76cebc Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期五, 18 八月 2023 18:54:31 +0800 Subject: [PATCH] 2023年08月18日18:54:22 --- HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPageBLL.cs | 40 +--------------------------------------- 1 files changed, 1 insertions(+), 39 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPageBLL.cs index ff4c689..980af0f 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPageBLL.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/FunctionBaseInfoSetPageBLL.cs @@ -12,7 +12,6 @@ { LoadEvent_ChangeFunctionName (); SkipChooseRoomPage(); - DelDeviceEvent(); } @@ -79,44 +78,7 @@ } } - /// <summary> - /// 瑙g粦璁惧鐨勪簨浠� - /// </summary> - void DelDeviceEvent() - { - - 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) => - { - 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(); - }); - - }); - - }); - }; - this.delView.MouseUpEventHandler += ClickEvent; - this.delTextBtn.MouseUpEventHandler += ClickEvent; - this.delRightBtn.MouseUpEventHandler += ClickEvent; - } + } -- Gitblit v1.8.0