From 8edf8fd9f5f7c29cc6302a8d46de06d391ed3657 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 16 一月 2020 13:03:57 +0800 Subject: [PATCH] 2020-01-16 Version 2.50115-B3 1.优化MQTT连接。 2.增加本地通信加密。 3.增加配置网关提示语。 4.编辑定时器增加重复名字提示 5.更新规范翻译。 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideSettingGateway.cs | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideSettingGateway.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideSettingGateway.cs index a12edd8..ed675ad 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideSettingGateway.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideSettingGateway.cs @@ -777,7 +777,8 @@ } catch (Exception ex) { Console.WriteLine (ex.Message); Application.RunOnMainThread (() => { - new Alert ("", Language.StringByID (R.MyInternationalizationString.OperationFailed), Language.StringByID (R.MyInternationalizationString.Close)).Show (); + //淇敼缃戝叧杩炴帴妯″紡澶辫触 + new Alert ("", "Failed to modify gateway connection mode!", Language.StringByID (R.MyInternationalizationString.Close)).Show (); }); bool canRemove = false; } finally { @@ -834,7 +835,7 @@ byte [] backBytes = Control.ControlBytesSendHasReturn (Command.SetGateWayAdminInfo, gatewayDeicve.SubnetID, gatewayDeicve.DeviceID, adminBytes); - return CheckIsSuccessfulWithBytes (backBytes); + return CheckIsSuccessfulWithBytes (backBytes, "Failed to modify gateway administrator information!"); } /// <summary> @@ -842,7 +843,7 @@ /// </summary> /// <param name="backBytes"></param> /// <returns></returns> - private bool CheckIsSuccessfulWithBytes (byte [] backBytes) + private bool CheckIsSuccessfulWithBytes (byte [] backBytes, string errorStr = "Modify gateway configuration failed!") { if (backBytes == null) { Application.RunOnMainThread (() => { @@ -854,7 +855,7 @@ return true; } else { Application.RunOnMainThread (() => { - new Alert ("", Language.StringByID (R.MyInternationalizationString.OperationFailed), + new Alert ("", errorStr, Language.StringByID (R.MyInternationalizationString.Close)).Show (); }); return false; @@ -904,7 +905,7 @@ void BindGatewaysNew () { Application.RunOnMainThread (() => { - MainPage.Loading.Start ("Gateway setting succeeded锛宒ata up.Please wait..."); + MainPage.Loading.Start ("Gateway setting succeeded锛宒ata up. Please wait..."); }); IO.FileUtils.SaveEquipmentMessage (gatewayDeicve); var gatewayMAC = gatewayDeicve.MAC.Replace (".", ""); -- Gitblit v1.8.0