| | |
| | | deviceRow.AddChidren (btnEdit); |
| | | btnEdit.MouseUpEventHandler += (sd, ds) => { |
| | | Dialog dialog = new Dialog (); |
| | | |
| | | //修改设备备注 |
| | | var dialogView = new FrameLayout () { |
| | | Gravity = Gravity.Center, |
| | | Width = Application.GetRealWidth (500), |
| | |
| | | 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 (() => { |