From 2d414e3b007f750cdad4f9e4a7c04db696bca5e4 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 23 四月 2020 16:13:59 +0800 Subject: [PATCH] 2020-04-23 1.优化远程连接提示,改为Loading方案,防止连接过程用户点击重连图标。 2.点击网络检测图标会判断,是否正在远程连接,如果是,会弹窗提示用户”正在远程连接,是否仍要重新检测“。 3.Help 增加隐藏长按功能,长按后,可以开启远程过程异常弹窗提示。长按后关闭。 --- Crabtree/SmartHome/HDL/Operation/Utlis.cs | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 47 insertions(+), 1 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Operation/Utlis.cs b/Crabtree/SmartHome/HDL/Operation/Utlis.cs index 25db21e..8b972ea 100644 --- a/Crabtree/SmartHome/HDL/Operation/Utlis.cs +++ b/Crabtree/SmartHome/HDL/Operation/Utlis.cs @@ -1,4 +1,7 @@ 锘縰sing System; +using Shared.SimpleControl; +using Shared.SimpleControl.Phone; + namespace Shared { public class Utlis @@ -36,6 +39,16 @@ // return value; //} + /// <summary> + /// 鍏ㄥ眬鎵撳嵃 + /// </summary> + public static void WriteLine (object mes) + { +#if DEBUG + System.Console.WriteLine (mes); +#endif + } + public static int StringToInt (string mStr) { try { return int.Parse (mStr); @@ -44,5 +57,38 @@ } } - } + public static void ShowAppLinkStatus (AppLinkStatus mStatus) { + + switch (mStatus) { + case AppLinkStatus.CloudLink: + MainPage.WiFiStatus = "CrabtreeAdd/CloudLink.png"; + break; + case AppLinkStatus.CloudUnlink: + MainPage.WiFiStatus = "CrabtreeAdd/CloudUnlink.png"; + break; + case AppLinkStatus.CloudOffline: + MainPage.WiFiStatus = "CrabtreeAdd/CloudOffline.png"; + break; + case AppLinkStatus.WiFi: + MainPage.WiFiStatus = "CrabtreeAdd/WiFi.png"; + break; + case AppLinkStatus.WiFiUnlink: + MainPage.WiFiStatus = "CrabtreeAdd/WiFiUnlink.png"; + break; + case AppLinkStatus.WiFiOffline: + MainPage.WiFiStatus = "CrabtreeAdd/WiFiOffline.png"; + break; + default: + + + break; + } + + Shared.Application.RunOnMainThread (() => { + UserMiddle.btnLinkStatus.UnSelectedImagePath = MainPage.WiFiStatus; + }); + + } + +} } -- Gitblit v1.8.0