From 4536880c51cd9d39d77df3e6ea733c6e9056c891 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 11 四月 2024 11:20:55 +0800
Subject: [PATCH] V2版本功能完成

---
 HDL_ON/UI/UI2/FuntionControlView/Electrical/FanPageBLL.cs |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/Electrical/FanPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/Electrical/FanPageBLL.cs
index aed7f73..9846580 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/Electrical/FanPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/Electrical/FanPageBLL.cs
@@ -62,11 +62,10 @@
         {
             btnSwitchIcon.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,
@@ -87,7 +86,7 @@
             };
             btnSwitch.MouseUpEventHandler += (sender, e) =>
             {
-                if (!function.online)
+                if (!function.isOnline())
                 {
                     new Tip()
                     {
@@ -109,7 +108,7 @@
                 { IsBackground = true }.Start();
             };
 
-            if (function.online)
+            if (function.isOnline())
             {
                 barGradualChange.OnStopTrackingTouchEvent = (sender, e) =>
                 {

--
Gitblit v1.8.0