From c9a987ced5454cfc6b9363eadcad038191706f5b Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期六, 12 十二月 2020 16:37:09 +0800 Subject: [PATCH] 2020-12-12 1.解锁设置优化 --- HDL_ON/UI/UI2/1-HomePage/HomePage.cs | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs index 5ccfafc..1a3df0a 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Text; using HDL_ON.DAL; +using HDL_ON.DriverLayer; using HDL_ON.Entity; using HDL_ON.UI.CSS; using Newtonsoft.Json; @@ -122,6 +123,21 @@ Radius = (uint)Application.GetRealWidth(3), }; topView.AddChidren(btnLinkStateTip); + if (Control.Ins.GatewayOnline) + { + if (Control.Ins.IsRemote) + { + bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.LinkTipRemote; + } + else + { + bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.MainColor; + } + } + else + { + bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.LinkTipFail; + } btnResidenceName = new Button() { -- Gitblit v1.8.0