From 34d49c20c2c2543658e844847c5eaa87f4c954e9 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 23 二月 2021 17:28:40 +0800 Subject: [PATCH] Merge branch 'temp-wxr' into NewFilePath --- HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs index e51c591..54e8af9 100644 --- a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs +++ b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs @@ -27,9 +27,13 @@ /// </summary> void CheckLinkStatus() { - if (Control.Ins.GatewayOnline) + if (!Control.Ins.GatewayOnline_Local && !Control.Ins.GatewayOnline_Cloud) { - if (Control.Ins.IsRemote) + bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.LinkTipFail; + } + else + { + if (Control.Ins.GatewayOnline_Cloud) { bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.MainColor; } @@ -37,10 +41,6 @@ { bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.LinkTipRemote; } - } - else - { - bodyView.btnLinkStateTip.BackgroundColor = CSS.CSS_Color.LinkTipFail; } } @@ -133,8 +133,16 @@ btnChangeScene.IsBold = false; CurShowTypeIsFunction = true; contentView.PageIndex = 0; + }; + //var client = new BlufiClient(); + //client.PostPackageLengthLimit = 128; + //client.RequestDeviceScan(); + //client.RequestDeviceStatus(); + //client.BlufiDelegate.Blufi_DidReceiveDeviceScanResponse(); + + btnChangeScene.MouseUpEventHandler = (sender, e) => { btnChangeScene.IsSelected = true; -- Gitblit v1.8.0