From 509e7b543f8a8770cf09dff97000acf78140c119 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期一, 06 一月 2020 09:46:13 +0800
Subject: [PATCH] 2019、1、6

---
 ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs |   20 ++++++++------------
 1 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs
index 1837878..9581fee 100644
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/DeviceDetailInfo.cs
@@ -21,7 +21,7 @@
         /// <summary>
         /// action
         /// </summary>
-        public Action action;
+        public Action<DeviceUI,Common.Room> EditAction;
         /// <summary>
         /// curRoom
         /// </summary>
@@ -39,6 +39,7 @@
         /// </summary>
         private DeviceInfoRow functionTypeRow;
 
+
         #endregion
 
         #region 鈼� 绉婚櫎____________________________
@@ -47,7 +48,6 @@
         /// </summary>
         public override void RemoveFromParent()
         {
-            action();
             base.RemoveFromParent();
         }
         #endregion
@@ -410,19 +410,15 @@
                             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));
                             }
                         });
                     })

--
Gitblit v1.8.0