JLChen
2020-01-12 ac2ee45fadc64fe840bbba6264df3ca4622adb15
Crabtree/SmartHome/HDL/Operation/Utlis.cs
@@ -1,4 +1,7 @@
using 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;
            });
        }
}
}