From 126f59cbba2e1505c191b22c9794d810cdedb4c3 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 24 四月 2020 15:39:05 +0800 Subject: [PATCH] 2020-04-24 1.优化远程连接和控制,增加远程连接让用户等待的Loading提示。 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideSettingGateway.cs | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideSettingGateway.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideSettingGateway.cs index 79e4a78..b95835f 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideSettingGateway.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Guide/GuideSettingGateway.cs @@ -146,11 +146,11 @@ { if (gatewayDeicve.Type == DeviceType.OnePortMqttFR) { - Console.WriteLine ("Assign OnePortMqttFR锛孒DL MQTT"); + Utlis.WriteLine ("Assign OnePortMqttFR锛孒DL MQTT"); //RemoteSetting (); RemoteSettingWithHDLMQTT (); } else { - Console.WriteLine ("Assign OnePortWirelessFR"); + Utlis.WriteLine ("Assign OnePortWirelessFR"); RemoteSettingWithOldDevice (); //RemoteSettingWithMQTT (); } @@ -195,7 +195,7 @@ if (common.Type == DeviceType.MusicModel) continue; if (common.isMixBox) { - Console.WriteLine ("IsMixBox"); + Utlis.WriteLine ("IsMixBox"); continue; } countDevcie++; @@ -463,7 +463,7 @@ btnDelDevice.Parent.RemoveFromParent (); }); } catch (Exception ex) { - Console.WriteLine (ex.Message); + Utlis.WriteLine (ex.Message); } finally { Application.RunOnMainThread (() => { MainPage.Loading.Hide (); @@ -501,7 +501,7 @@ // } // } // } catch (Exception ex) { - // Console.WriteLine ("Cinfig Read Device Loop Info " + ex.Message); + // Utlis.WriteLine ("Cinfig Read Device Loop Info " + ex.Message); // } //}); } @@ -523,7 +523,7 @@ //杩欓噷鎼滅储璁惧锛岀洿鍒板畬鎴愬氨閫�鍑� readDevice (); } catch (Exception ex) { - Console.WriteLine (ex.Message); + Utlis.WriteLine (ex.Message); } Application.RunOnMainThread (action); }) { IsBackground = true }.Start (); @@ -568,7 +568,7 @@ ms.WriteByte (common.SubnetID); ms.WriteByte (common.DeviceID); } - Console.WriteLine ("鎼滅储闈炵綉鍏宠澶囷紝缃戠粶鍦板潃鏄�:" + CommonPage.EndPoint.ToString ()); + Utlis.WriteLine ("鎼滅储闈炵綉鍏宠澶囷紝缃戠粶鍦板潃鏄�:" + CommonPage.EndPoint.ToString ()); var control = new Control (); control.Send (new Target () { IPEndPoint = CommonPage.EndPoint, @@ -707,7 +707,7 @@ BindGatewaysNew (); } } catch (Exception ex) { - Console.WriteLine (ex.Message); + Utlis.WriteLine (ex.Message); Application.RunOnMainThread (() => { new Alert ("", Language.StringByID (R.MyInternationalizationString.OperationFailed), Language.StringByID (R.MyInternationalizationString.Close)).Show (); }); @@ -754,7 +754,7 @@ } } catch (Exception ex) { - Console.WriteLine (ex.Message); + Utlis.WriteLine (ex.Message); Application.RunOnMainThread (() => { //淇敼缃戝叧杩炴帴妯″紡澶辫触 new Alert ("", "Failed to modify gateway connection mode!", Language.StringByID (R.MyInternationalizationString.Close)).Show (); @@ -1220,7 +1220,7 @@ // } // } catch (Exception ex) { - // Console.WriteLine (ex.Message); + // Utlis.WriteLine (ex.Message); // Application.RunOnMainThread (() => { // new Alert ("", Language.StringByID (R.MyInternationalizationString.OperationFailed), Language.StringByID (R.MyInternationalizationString.Close)).Show (); // }); -- Gitblit v1.8.0