| | |
| | | /// <summary> |
| | | /// action |
| | | /// </summary> |
| | | public Action action; |
| | | public Action<DeviceUI,Common.Room> EditAction; |
| | | /// <summary> |
| | | /// curRoom |
| | | /// </summary> |
| | |
| | | /// </summary> |
| | | private DeviceInfoRow functionTypeRow; |
| | | |
| | | |
| | | #endregion |
| | | |
| | | #region ◆ 移除____________________________ |
| | |
| | | /// </summary> |
| | | public override void RemoveFromParent() |
| | | { |
| | | action(); |
| | | base.RemoveFromParent(); |
| | | } |
| | | #endregion |
| | |
| | | CommonPage.Loading.Hide(); |
| | | if (result) |
| | | { |
| | | //var alertSuccess = new Alert(Language.StringByID(R.MyInternationalizationString.TIP), Language.StringByID(R.MyInternationalizationString.Success), Language.StringByID(R.MyInternationalizationString.Confrim)); |
| | | //alertSuccess.Show(); |
| | | //alertSuccess.ResultEventHandler += (senderSuccess, eSuccess) => |
| | | //{ |
| | | //改房间 |
| | | Shared.Common.Room.CurrentRoom.ChangedRoom(device.CommonDevice, curRoom.Id); |
| | | device.CommonDevice.ReSave(); |
| | | RemoveFromParent(); |
| | | //}; |
| | | //改房间 |
| | | Shared.Common.Room.CurrentRoom.ChangedRoom(device.CommonDevice, curRoom.Id); |
| | | device.CommonDevice.ReSave(); |
| | | EditAction?.Invoke(device, curRoom); |
| | | RemoveFromParent(); |
| | | } |
| | | else |
| | | { |
| | | CommonPage.Instance.ShowErrorInfoAlert(R.MyInternationalizationString.FailedPleaseTryAgain); |
| | | CommonFormResouce.ShowTip(Language.StringByID(R.MyInternationalizationString.FailedPleaseTryAgain)); |
| | | } |
| | | }); |
| | | }) |