From 0fafbe4b132d03dc8f1f99de585bfcb5e63ab60a Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期一, 09 一月 2023 14:02:01 +0800 Subject: [PATCH] 多网关支持 --- Crabtree/SmartHome/UI/SimpleControl/Phone/Room/UserDeviceListPage.cs | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Room/UserDeviceListPage.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Room/UserDeviceListPage.cs index cf19b50..4ce9682 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Room/UserDeviceListPage.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Room/UserDeviceListPage.cs @@ -364,7 +364,7 @@ deviceRow.AddChidren (btnEdit); btnEdit.MouseUpEventHandler += (sd, ds) => { Dialog dialog = new Dialog (); - + //淇敼璁惧澶囨敞 var dialogView = new FrameLayout () { Gravity = Gravity.Center, Width = Application.GetRealWidth (500), @@ -442,6 +442,13 @@ return; } + //淇敼浜戠澶囨敞 + new System.Threading.Thread (() => { + var http = new HttpServerRequest (); + http.EditDeviceName (commonDevice.DeviceID.ToString (), UserConfig.Instance.CurrentRegion.Id, remakeStr); + }) { IsBackground = true }.Start (); + + MainPage.Loading.Start (); //byte [] remakeBytes = CommonPage.MyEncodingGB2312.GetBytes (etDeviceName.Text.Trim ()); System.Threading.Tasks.Task.Run (() => { -- Gitblit v1.8.0