old mode 100644
new mode 100755
| | |
| | | EventHandler<MouseEventArgs> eHandlerBack = (sender, e) => |
| | | { |
| | | RemoveFromParent(); |
| | | |
| | | //暂时不考虑下级界面等推送导致常开模式失效的问题 |
| | | //var userDoorLockPage = new UserDoorLockPage(currentRoom, deviceUI); |
| | | //HomePage.Instance.AddChidren(userDoorLockPage); |
| | | //HomePage.Instance.PageIndex += 1; |
| | | //userDoorLockPage.Show(); |
| | | }; |
| | | this.btnBack.MouseUpEventHandler += eHandlerBack; |
| | | this.btnBackFrameLayout.MouseUpEventHandler += eHandlerBack; |
| | |
| | | var listCheck = new List<string>(); |
| | | rowBeloneArea.SelectRoomEvent += (roomKeys) => |
| | | { |
| | | //选择未分配时,清空 |
| | | //选择未分配时,清空
|
| | | if (roomKeys == string.Empty) { listCheck = new List<string>(); } |
| | | foreach (var device in this.listNewDevice) |
| | | {
|
| | |
| | | }; |
| | | |
| | | //设备模块 |
| | | caption = Language.StringByID(R.MyInternationalizationString.BelongModel); |
| | | caption = Language.StringByID(R.MyInternationalizationString.BelongDevice); |
| | | deviceName = Common.LocalDevice.Current.GetDeviceObjectText(listNewDevice); |
| | | var btnType = new FrameCaptionViewControl(caption, deviceName, listview.rowSpace / 2); |
| | | btnType.UseClickStatu = false; |
| | |
| | | /// 设备重命名 |
| | | /// </summary> |
| | | /// <param name="i_deviceName">deviceName.</param> |
| | | private async void DeviceReName(string i_deviceName, bool closeForm) |
| | | private void DeviceReName(string i_deviceName, bool closeForm) |
| | | { |
| | | //开启进度条 |
| | | this.ShowProgressBar(); |
| | | |
| | | //修改MAC名 |
| | | string deviceName = i_deviceName.Trim(); |
| | | var result = await Common.LocalDevice.Current.ReMacName(listNewDevice, deviceName); |
| | | var result = Common.LocalDevice.Current.ReMacName(listNewDevice, deviceName); |
| | | //关闭进度条 |
| | | this.CloseProgressBar(); |
| | | |