From ac2ee45fadc64fe840bbba6264df3ca4622adb15 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期日, 12 一月 2020 16:06:13 +0800
Subject: [PATCH] 2020-01-12 1.优化修改。

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

diff --git a/Crabtree/SmartHome/HDL/Operation/Utlis.cs b/Crabtree/SmartHome/HDL/Operation/Utlis.cs
index 25db21e..1ad2fe8 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,32 @@
             }
         }
 
-    }
+        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.WiFi:
+                MainPage.WiFiStatus = "CrabtreeAdd/WiFi.png";
+                break;
+            case AppLinkStatus.WiFiUnlink:
+                MainPage.WiFiStatus = "CrabtreeAdd/WiFiUnlink.png";
+                break;
+            default:
+
+
+                break;
+            }
+
+            Shared.Application.RunOnMainThread (() => {
+                UserMiddle.btnLinkStatus.UnSelectedImagePath = MainPage.WiFiStatus;
+            });
+            
+        }
+
+}
 }

--
Gitblit v1.8.0