From f8343a2e765eefe10c8a0d6bdd6db65b0cf0321c Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期六, 06 五月 2023 15:33:30 +0800 Subject: [PATCH] 灯光延时 --- HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs b/HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs index 971203f..12a85bf 100644 --- a/HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs +++ b/HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs @@ -3,6 +3,7 @@ using HDL_ON.DAL.Server; using HDL_ON.Entity; using Shared; +using static HDL_ON.UI.UI2.FuntionControlView.VideoDoorLock.CommonMethod; namespace HDL_ON.UI { @@ -12,7 +13,7 @@ /// <summary> /// 鍔熻兘鎺у埗鐣岄潰璺宠浆浜嬩欢 /// </summary> - public EventHandler<MouseEventArgs> LoadEvent_SkipFunctionControlPage(Function function, Button btnCollectionIcon, Button btnName, Button btnFromFloor + public EventHandler<MouseEventArgs> LoadEvent_SkipFunctionControlPage(Function function, Button btnCollectionIcon, Button btnName, Button btnFromFloor, Comerom comerom,Action action ) { EventHandler<MouseEventArgs> eventHandler = (sender, e) => @@ -21,6 +22,10 @@ //璺宠浆鍒板姛鑳戒俊鎭缃〉闈� switch (function.spk) { + case SPK.GroupControl: + var dialog = new GroupControlPage(FunctionList.List.groupControls.Find((obj) => obj.sid == function.sid)); + dialog.ShowDialog(); + break; case SPK.AirSwitch: var airSwitchPage = new AirSwitchPage(function); MainPage.BasePageView.AddChidren(airSwitchPage); @@ -321,6 +326,14 @@ } #endif break; + case SPK.VideoDoorLock: { + //钀ょ煶瑙嗛闂ㄩ攣 + var form = new VideoDoorLockPage(function, btnName, btnFromFloor,comerom,action); + MainPage.BasePageView.AddChidren(form); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + form.Show(); + } + break; } }; return eventHandler; -- Gitblit v1.8.0