From ec5a167e0366a75642e45dbd30817c1c8ae57e79 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 11 九月 2023 15:34:29 +0800 Subject: [PATCH] 备份 --- OnPro/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs | 44 +++++++------------------------------------- 1 files changed, 7 insertions(+), 37 deletions(-) diff --git a/OnPro/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/OnPro/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs index 614bd63..f530487 100644 --- a/OnPro/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs +++ b/OnPro/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs @@ -33,20 +33,20 @@ } if (btn.Tag.ToString() == function.sid) { - if (function.isOnline()) + //if (function.isOnline()) { btn.UnSelectedImagePath = "Collection/Functionbg.png"; btn.IsSelected = false; } - else - { - btn.UnSelectedImagePath = "Collection/FunctionOfflineBg.png"; - btn.IsSelected = false; - } + //else + //{ + // btn.UnSelectedImagePath = "Collection/FunctionOfflineBg.png"; + // btn.IsSelected = false; + //} } else if (btn.Tag.ToString() == "OnlineTag") { - btn.Visible = !function.isOnline(); + //btn.Visible = !function.isOnline(); } } } @@ -266,16 +266,6 @@ { btnSwitch.MouseUpEventHandler = (sender, e) => { - if (!function.isOnline())//绂荤嚎涓嶅厑璁告搷浣� - { - new Tip() - { - CloseTime = 1, - Text = Language.StringByID(StringId.DeviceOfflineCannotOption), - Direction = AMPopTipDirection.None, - }.Show(MainPage.BaseView); - return; - } btnSwitch.IsSelected = !btnSwitch.IsSelected; new System.Threading.Thread(() => { @@ -342,16 +332,6 @@ }; btnUp.MouseUpEventHandler = (sender, e) => { - if (!function.isOnline())//绂荤嚎涓嶅厑璁告搷浣� - { - new Tip() - { - CloseTime = 1, - Text = Language.StringByID(StringId.DeviceOfflineCannotOption), - Direction = AMPopTipDirection.None, - }.Show(MainPage.BaseView); - return; - } new System.Threading.Thread(() => { System.Threading.Thread.Sleep(2000); @@ -373,16 +353,6 @@ }; btnDown.MouseUpEventHandler = (sender, e) => { - if (!function.isOnline())//绂荤嚎涓嶅厑璁告搷浣� - { - new Tip() - { - CloseTime = 1, - Text = Language.StringByID(StringId.DeviceOfflineCannotOption), - Direction = AMPopTipDirection.None, - }.Show(MainPage.BaseView); - return; - } new System.Threading.Thread(() => { System.Threading.Thread.Sleep(2000); -- Gitblit v1.8.0