old mode 100755
new mode 100644
| | |
| | | //生成一个弹窗画面 |
| | | var dialogForm = new DialogInputControl(); |
| | | //编辑住宅 |
| | | dialogForm.SetTitleText("自定义唤醒词"); |
| | | dialogForm.SetTitleText("自定义昵称"); |
| | | //请输入住宅名称 |
| | | dialogForm.SetTipText("请输入唤醒词"); |
| | | dialogForm.SetTipText("请输入昵称"); |
| | | dialogForm.Text = scene.NicksName; |
| | | |
| | | //按下确认按钮 |
| | |
| | | //生成一个弹窗画面 |
| | | var dialogForm = new DialogInputControl(); |
| | | //编辑住宅 |
| | | dialogForm.SetTitleText("自定义唤醒词"); |
| | | dialogForm.SetTitleText("自定义昵称"); |
| | | //请输入住宅名称 |
| | | dialogForm.SetTipText("请输入唤醒词"); |
| | | dialogForm.SetTipText("请输入昵称"); |
| | | dialogForm.Text = device.NicksName; |
| | | |
| | | //按下确认按钮 |
| | |
| | | /// </summary> |
| | | private void ShowSceneDelectDialog(SmartSound.Scene scene) |
| | | { |
| | | this.ShowMassage(ShowMsgType.Confirm, "确认删除该控制内容?", async () => |
| | | this.ShowMassage(ShowMsgType.Confirm, "确认删除该控制内容?", () => |
| | | { |
| | | try |
| | | HdlThreadLogic.Current.RunThread(async () => |
| | | { |
| | | this.ShowProgressBar(); |
| | | CurrentRoom.SceneList.Remove(scene); |
| | | LoadSceneView(); |
| | | string json = await postBatchEdit(); |
| | | } |
| | | catch (Exception e) |
| | | |
| | | HdlThreadLogic.Current.RunMainInThread(() => |
| | | { |
| | | string sss = e.Message; |
| | | } |
| | | LoadSceneView(); |
| | | this.CloseProgressBar(); |
| | | }); |
| | | }); |
| | | |
| | | }, Language.StringByID(R.MyInternationalizationString.OkMsg)); |
| | | } |
| | |
| | | /// </summary> |
| | | private void ShowDeviceDelectDialog(SmartSound.Device device) |
| | | { |
| | | this.ShowMassage(ShowMsgType.Confirm, "确认删除该控制内容?", async () => |
| | | this.ShowMassage(ShowMsgType.Confirm, "确认删除该控制内容?", () => |
| | | { |
| | | try |
| | | { |
| | | //DeviceListView.RemoveAt(index); |
| | | CurrentRoom.DeviceList.Remove(device); |
| | | RefreshFunctionListView(); |
| | | |
| | | string json = await postBatchEdit(); |
| | | } |
| | | catch (Exception e) |
| | | HdlThreadLogic.Current.RunThread(async () => |
| | | { |
| | | string sss = e.Message; |
| | | } |
| | | this.ShowProgressBar(); |
| | | CurrentRoom.DeviceList.Remove(device); |
| | | string json = await postBatchEdit(); |
| | | |
| | | HdlThreadLogic.Current.RunMainInThread(() => |
| | | { |
| | | RefreshFunctionListView(); |
| | | this.CloseProgressBar(); |
| | | }); |
| | | }); |
| | | |
| | | }, Language.StringByID(R.MyInternationalizationString.OkMsg)); |
| | | } |
| | |
| | | // 提交数据至服务器 |
| | | string url = "https://developer.hdlcontrol.com/zigbeespeakerservice/BatchEdit"; |
| | | string json = Newtonsoft.Json.JsonConvert.SerializeObject(SmartSound.getInstantiate()); |
| | | string response_str = await MyHttpWebResponse.PostWebRequest(url, json, Encoding.UTF8); |
| | | string response_str = MyHttpWebResponse.PostWebRequest(url, json, Encoding.UTF8); |
| | | return response_str; |
| | | } |
| | | |