From dc14dbad8e3a55b57cadddba40c3f437e5e80fc5 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 01 十一月 2022 09:08:03 +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