From c1863db0158fb6c2a1cd96686d514c98c1073937 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 17 一月 2020 11:58:18 +0800 Subject: [PATCH] 2020-01-17 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs index 4340598..c8b8b9c 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideAddGateway.cs @@ -322,7 +322,7 @@ UserHomePage.FrameLayoutMain.AddChidren (UserMiddle.guidePageView); var guide = new GuideAddResidence (); UserMiddle.guidePageView.AddChidren (guide); - guide.ShowHomeList (); + guide.ShowHomeView (); UserMiddle.guidePageView.PageIndex = 0; //閲嶇疆涓哄姞瀵嗘ā寮� UserConfig.Instance.IsLocalEncrypt = true; @@ -527,7 +527,7 @@ /// </summary> /// <param name="backBytes"></param> /// <returns></returns> - static bool CheckIsSuccessfulWithBytes (byte [] backBytes) + static bool CheckIsSuccessfulWithBytes (byte [] backBytes, string errorStr = "Modify gateway configuration failed!") { if (backBytes == null) { Application.RunOnMainThread (() => { @@ -539,7 +539,7 @@ return true; } else { Application.RunOnMainThread (() => { - new Alert ("", Language.StringByID (R.MyInternationalizationString.OperationFailed), + new Alert ("", errorStr, Language.StringByID (R.MyInternationalizationString.Close)).Show (); }); return false; @@ -611,12 +611,17 @@ //濡傛灉娌″姞瀵嗭紝璧颁慨鏀瑰姞瀵嗘柟娉� var result = SetGateWayLocalEncryption (common); if (!result) { - MainPage.LoadingHide (); + Application.RunOnMainThread (() => { + MainPage.Loading.Hide (); + new Alert ("", ErrorCode.OperationFailed, Language.StringByID (R.MyInternationalizationString.Close)).Show (); + + }); + return result;//淇敼澶辫触 杩斿洖goNext false } //淇敼鎴愬姛,璁剧疆鏈湴涓哄姞瀵嗘柟寮� UserConfig.Instance.IsLocalEncrypt = true; - System.Console.WriteLine ($"============>LocalEncryptKey 鍔犲瘑鎴愬姛Key涓猴細{UserConfig.Instance.LocalEncryptKey}"); + //System.Console.WriteLine ($"============>LocalEncryptKey 鍔犲瘑鎴愬姛Key涓猴細{UserConfig.Instance.LocalEncryptKey}"); } goNext = true; -- Gitblit v1.8.0