From 9137222ece9b978eb97b5598f2eee6e070bcf9d6 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 28 二月 2020 15:22:16 +0800
Subject: [PATCH] 2020-02-28 更新

---
 Crabtree/SmartHome/HDL/Operation/Utlis.cs |   38 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 37 insertions(+), 1 deletions(-)

diff --git a/Crabtree/SmartHome/HDL/Operation/Utlis.cs b/Crabtree/SmartHome/HDL/Operation/Utlis.cs
index 25db21e..bba2d94 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
@@ -44,5 +47,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