From 1abb88e79c293770474017a4b0b7bc4b7d95c53d Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 23 三月 2022 15:14:00 +0800 Subject: [PATCH] 去掉在离线状态 --- HDL_ON/UI/UI2/1-HomePage/HomePage.cs | 47 +++++++++++++++++------------------------------ 1 files changed, 17 insertions(+), 30 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs index 15e8fd4..ecea303 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs @@ -206,19 +206,6 @@ // Control.Ins.OneKeyUnlocking(new Function(), UserInfo.Current.doorPasswordString); //} - ddd++; - Function function_online = FunctionList.List.GetLightList().Find((obj) => obj.sid == "0001017DB92D2602020100010101"); - if(ddd%2 == 0) - { - function_online.online2d = true; - } - else - { - function_online.online2d = false; - } - HomePage.LoadEvent_RefreshDevcieOnline(function_online); - - }; #endif @@ -953,10 +940,10 @@ index++; - if (!function.online2d) - { - btnbg.UnSelectedImagePath = "Collection/FunctionOfflineBg.png"; - } + //if (!function.online) + //{ + // btnbg.UnSelectedImagePath = "Collection/FunctionOfflineBg.png"; + //} } if (index == 0) @@ -1340,19 +1327,19 @@ UpdataFunctionStates(function); } - var btnOffline = new Button() - { - X = btnIcon.Right, - Y = Application.GetRealWidth(16), - Height = Application.GetMinRealAverage(32), - TextID = StringId.DeviceOffline, - TextColor = CSS_Color.WarningColor, - TextSize = CSS_FontSize.PromptFontSize_FirstLevel, - TextAlignment = TextAlignment.CenterLeft, - Tag = "OnlineTag", - Visible = !function.online2d - }; - view.AddChidren(btnOffline); + //var btnOffline = new Button() + //{ + // X = btnIcon.Right, + // Y = Application.GetRealWidth(16), + // Height = Application.GetMinRealAverage(32), + // TextID = StringId.DeviceOffline, + // TextColor = CSS_Color.WarningColor, + // TextSize = CSS_FontSize.PromptFontSize_FirstLevel, + // TextAlignment = TextAlignment.CenterLeft, + // Tag = "OnlineTag", + // Visible = !function.online + //}; + //view.AddChidren(btnOffline); } catch (Exception ex) -- Gitblit v1.8.0