From f60ce72c3c29c7d31a046795c88ec39a69e73d45 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 06 一月 2021 17:33:54 +0800
Subject: [PATCH] 2021-01-06 1.替换新云端前期准备相关接口,和修改相关参数。

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs
index 1a363c3..3462211 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs
@@ -83,10 +83,11 @@
             etRemark.EditorEnterAction += (obj) => {
                 Application.HideSoftInput ();
             };
-            if (MainPage.LoginUser.AccountType == 1) {
-                etRemark.Enable = false;
-                etRemark.BorderWidth = 0;
-            }
+
+            //if (MainPage.LoginUser.AccountType == 1) {
+            //    etRemark.Enable = false;
+            //    etRemark.BorderWidth = 0;
+            //}
 
             var BottomView = new FrameLayout () {
                 Y = Application.GetRealHeight (400 - 88),
@@ -353,7 +354,7 @@
         void SearchGatewayList ()
         {
             if (UserConfig.Instance.internetStatus == 0 || UserConfig.Instance.internetStatus == 1) {
-                Alert checkInternetAlert = new Alert ("", "Your phone in not connected to WIFI network, please connet", "Close", "Search again");
+                Alert checkInternetAlert = new Alert ("", ErrorCode.NotConnectedToWIFI, "Close", "Search again");
 
                 checkInternetAlert.Show ();
 
@@ -445,7 +446,7 @@
                         } else {
                             if (this != null && this.Parent != null) {
                                 if (inThisView) {// this.Parent.GetChildren (this.Parent.ChildrenCount - 1) == this) {
-                                    Alert confirmAlert1 = new Alert ("", "If not all the gateways are in the list,you can search again.", "Close", "Search again");
+                                    Alert confirmAlert1 = new Alert ("", ErrorCode.IfAllTheGatewaysAreNotInTheList, "Close", "Search again");
 
                                     confirmAlert1.Show ();
                                     confirmAlert1.ResultEventHandler += (ddf, ddd) => {
@@ -472,7 +473,7 @@
             if (UserConfig.Instance.IsLocalEncrypt) {
                 //瀵嗙爜妫�楠屾纭�
                 if (UserConfig.Instance.EncryptedPasswordCorrect) {
-                    Alert confirmAlert = new Alert ("", "Please make sure gateway is powered up and comect to WiFi router.", "Close", "Search again");
+                    Alert confirmAlert = new Alert ("", ErrorCode.MakeSureGatewayIsPoweredUp, "Close", "Search again");
                     confirmAlert.Show ();
                     confirmAlert.ResultEventHandler += (ddf, ddd) => {
                         MainPage.Loading.Hide ();
@@ -492,7 +493,7 @@
 
                 }
             } else {
-                Alert confirmAlert = new Alert ("", "Please make sure gateway is powered up and comect to WiFi router.", "Close", "Search again");
+                Alert confirmAlert = new Alert ("", ErrorCode.MakeSureGatewayIsPoweredUp, "Close", "Search again");
                 confirmAlert.Show ();
                 confirmAlert.ResultEventHandler += (ddf, ddd) => {
                     MainPage.Loading.Hide ();

--
Gitblit v1.8.0