From f16fd06aa226e9f97a27858624d4ea7cf8975d25 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 07 五月 2024 17:24:38 +0800 Subject: [PATCH] 增加了萤石摄像头 --- HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs b/HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs index 3314a6e..ba61302 100644 --- a/HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs +++ b/HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs @@ -86,11 +86,10 @@ btnSwitch.MouseUpEventHandler = (sender, e) => { - if (!function.online)//绂荤嚎涓嶅厑璁告搷浣� + if (!function.isOnline())//绂荤嚎涓嶅厑璁告搷浣� { new Tip() { - MaxWidth = Application.GetRealWidth(300), CloseTime = 1, Text = Language.StringByID(StringId.DeviceOfflineCannotOption), Direction = AMPopTipDirection.None, @@ -134,7 +133,7 @@ /// </summary> void LoadEvent_LightDimming(DiyImageSeekBar dimmerControlBar) { - if (!function.online)//绂荤嚎涓嶅厑璁告搷浣� + if (!function.isOnline())//绂荤嚎涓嶅厑璁告搷浣� { //new Tip() //{ @@ -144,7 +143,7 @@ //}.Show(MainPage.BaseView); return; } - if (function.spk == SPK.LightDimming || function.spk == SPK.LightRGB) + if (function.spk == SPK.LightDimming || function.spk == SPK.LightRGB || function.spk == SPK.LightCCT) { dimmerControlBar.OnStartTrackingTouchEvent = (sender, e) => { onDimmerBar = true; @@ -281,7 +280,7 @@ }; btnUp.MouseUpEventHandler = (sender, e) => { - if (!function.online)//绂荤嚎涓嶅厑璁告搷浣� + if (!function.isOnline())//绂荤嚎涓嶅厑璁告搷浣� { new Tip() { @@ -312,7 +311,7 @@ }; btnDown.MouseUpEventHandler = (sender, e) => { - if (!function.online)//绂荤嚎涓嶅厑璁告搷浣� + if (!function.isOnline())//绂荤嚎涓嶅厑璁告搷浣� { new Tip() { @@ -406,7 +405,18 @@ /// </summary> void LoadEvent_DivSkipEvent() { - var eventHandler = new PublicAssmebly().LoadEvent_SkipFunctionControlPage(function, btnCollectionIcon, btnName, btnFromFloor); + //if (function.spk == SPK.GroupControl) + //{ + // EventHandler<MouseEventArgs> handler = (sender, e) => { + // var dialog = new GroupControlPage(FunctionList.List.groupControls.Find((obj) => obj.sid == function.sid)); + // dialog.ShowDialog(); + // }; + // this.MouseUpEventHandler = handler; + // btnName.MouseUpEventHandler = handler; + // btnFromFloor.MouseUpEventHandler = handler; + // return; + //} + var eventHandler = new PublicAssmebly().LoadEvent_SkipFunctionControlPage(function, btnCollectionIcon, btnName, btnFromFloor, Comerom.room,this.action); this.MouseUpEventHandler = eventHandler; btnName.MouseUpEventHandler = eventHandler; btnFromFloor.MouseUpEventHandler = eventHandler; -- Gitblit v1.8.0