From ac8660d2dd439e8074c1760cbe6cc9465a452193 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期四, 24 八月 2023 17:50:17 +0800 Subject: [PATCH] Merge branch 'Dev-Branch' into wjc --- HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs | 52 ++++++++++++++++++++++++++-------------------------- 1 files changed, 26 insertions(+), 26 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs index a601904..fa26fd2 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs @@ -33,7 +33,7 @@ } if (btn.Tag.ToString() == function.sid) { - if (function.online) + if (function.isOnline()) { btn.UnSelectedImagePath = "Collection/Functionbg.png"; btn.IsSelected = false; @@ -46,7 +46,7 @@ } else if (btn.Tag.ToString() == "OnlineTag") { - btn.Visible = !function.online; + btn.Visible = !function.isOnline(); } } } @@ -546,7 +546,7 @@ { btnSwitch.MouseUpEventHandler = (sender, e) => { - if (!function.online)//绂荤嚎涓嶅厑璁告搷浣� + if (!function.isOnline())//绂荤嚎涓嶅厑璁告搷浣� { new Tip() { @@ -615,7 +615,7 @@ { btnSwitch.MouseUpEventHandler = (sender, e) => { - if (!function.online)//绂荤嚎涓嶅厑璁告搷浣� + if (!function.isOnline())//绂荤嚎涓嶅厑璁告搷浣� { new Tip() { @@ -659,16 +659,16 @@ { btnClose.MouseUpEventHandler = (sender, e) => { - if (!curtain.online)//绂荤嚎涓嶅厑璁告搷浣� - { - new Tip() - { - CloseTime = 1, - Text = Language.StringByID(StringId.DeviceOfflineCannotOption), - Direction = AMPopTipDirection.None, - }.Show(MainPage.BaseView); - return; - } + //if (!curtain.isOnline())//绂荤嚎涓嶅厑璁告搷浣� + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} btnClose.IsSelected = true; curtain.trait_on_off.curValue = "off"; curtain.SetAttrState(FunctionAttributeKey.Percent, 0); @@ -679,16 +679,16 @@ btnOpen.MouseUpEventHandler = (sender, e) => { - if (!curtain.online)//绂荤嚎涓嶅厑璁告搷浣� - { - new Tip() - { - CloseTime = 1, - Text = Language.StringByID(StringId.DeviceOfflineCannotOption), - Direction = AMPopTipDirection.None, - }.Show(MainPage.BaseView); - return; - } + //if (!curtain.isOnline())//绂荤嚎涓嶅厑璁告搷浣� + //{ + // new Tip() + // { + // CloseTime = 1, + // Text = Language.StringByID(StringId.DeviceOfflineCannotOption), + // Direction = AMPopTipDirection.None, + // }.Show(MainPage.BaseView); + // return; + //} btnOpen.IsSelected = true; curtain.trait_on_off.curValue = "on"; curtain.SetAttrState(FunctionAttributeKey.Percent, 100); @@ -709,7 +709,7 @@ }; btnUp.MouseUpEventHandler = (sender, e) => { - if (!function.online)//绂荤嚎涓嶅厑璁告搷浣� + if (!function.isOnline())//绂荤嚎涓嶅厑璁告搷浣� { new Tip() { @@ -740,7 +740,7 @@ }; btnDown.MouseUpEventHandler = (sender, e) => { - if (!function.online)//绂荤嚎涓嶅厑璁告搷浣� + if (!function.isOnline())//绂荤嚎涓嶅厑璁告搷浣� { new Tip() { -- Gitblit v1.8.0