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/2-Classification/FunctionControlZone.cs |   28 +++++++++++++---------------
 1 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/OnPro/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs b/OnPro/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs
index 72e8d06..3cc6d11 100644
--- a/OnPro/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs
+++ b/OnPro/HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs
@@ -212,7 +212,7 @@
 
             btnName = new Button()
             {
-                X = Application.GetRealWidth(8 +10 + 32),
+                X = Application.GetRealWidth(8 + 10 + 32),
                 Y = Application.GetRealHeight(10),
                 Width = Application.GetRealWidth(200),
                 Height = Application.GetRealHeight(24),
@@ -246,21 +246,19 @@
                 UnSelectedImagePath = "Collection/CollectionGrayIcon.png",
                 IsSelected = function.collect
             };
-            if (!function.isOnline())
+
+            bodyDiv.BackgroundColor = CSS_Color.PromptingColor2;
+            btnOffline = new Button()
             {
-                bodyDiv.BackgroundColor = CSS_Color.PromptingColor2;
-                btnOffline = new Button()
-                {
-                    X = Application.GetRealWidth(8 + 10 + 32),
-                    Y = Application.GetRealHeight(28 + 24),
-                    Height = Application.GetRealHeight(30),
-                    TextID = StringId.DeviceOffline,
-                    TextColor = CSS_Color.WarningColor,
-                    TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
-                    TextAlignment = TextAlignment.CenterLeft
-                };
-                bodyDiv.AddChidren(btnOffline);
-            }
+                X = Application.GetRealWidth(8 + 10 + 32),
+                Y = Application.GetRealHeight(28 + 24),
+                Height = Application.GetRealHeight(30),
+                TextID = StringId.DeviceOffline,
+                TextColor = CSS_Color.WarningColor,
+                TextSize = CSS_FontSize.PromptFontSize_FirstLevel,
+                TextAlignment = TextAlignment.CenterLeft
+            };
+            bodyDiv.AddChidren(btnOffline);
         }
 
         /// <summary>

--
Gitblit v1.8.0