From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期二, 30 八月 2022 09:37:38 +0800
Subject: [PATCH] 合并了IOS的代码

---
 ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/ACZbGatewayUpdateMenuForm.cs |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/ACZbGatewayUpdateMenuForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/ACZbGatewayUpdateMenuForm.cs
index ce14a14..08c8ac4 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/ACZbGatewayUpdateMenuForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/AirConditioner/ACZbGatewayUpdateMenuForm.cs
@@ -1,6 +1,7 @@
 锘縰sing System;
 using System.Collections.Generic;
 using System.Text;
+using ZigBee.Device;
 
 namespace Shared.Phone.UserCenter.DeviceAirConditioner
 {
@@ -12,9 +13,9 @@
         #region 鈻� 鍙橀噺澹版槑___________________________
 
         /// <summary>
-        /// 璁惧mac鍦板潃
+        /// 璁惧
         /// </summary>
-        private string deviceMac = null;
+        private CommonDevice deviceAc = null;
 
         #endregion
 
@@ -23,11 +24,11 @@
         /// <summary>
         /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓)
         /// </summary>
-        /// <param name="i_deviceMac">璁惧mac鍦板潃</param>
+        /// <param name="i_deviceAc">璁惧</param>
         /// <param name="hadNewVersion">鎷ユ湁鏂扮増鏈�</param>
-        public void ShowForm(string i_deviceMac, bool hadNewVersion)
+        public void ShowForm(CommonDevice i_deviceAc, bool hadNewVersion)
         {
-            this.deviceMac = i_deviceMac;
+            this.deviceAc = i_deviceAc;
 
             //璁剧疆澶撮儴淇℃伅
             base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uFirmwareUpdate));
@@ -67,14 +68,14 @@
                 //杩欓噷鏄澶囩殑Ota鍗囩骇
                 btnNewVersion.Visible = false;
                 var form = new Device.DeviceFirmwareUpdateForm();
-                form.AddForm(this.deviceMac);
+                form.AddForm(this.deviceAc.DeviceAddr);
             };
             //鎻愮ず鏈夋柊鐗堟湰
             btnNewVersion.UnSelectedImagePath = "Item/NewVersion.png";
             btnNewVersion.Visible = hadNewVersion;
             btnNewVersion.X = Application.GetRealWidth(242);
             btnNewVersion.Y = Application.GetRealHeight(23);
-            rowComunication.AddChidren(btnNewVersion, ChidrenBindMode.BindEventOnly);
+            rowComunication.AddChidren(btnNewVersion, ChidrenBindMode.BindEvent);
 
             //绌鸿皟妯″潡
             var rowModel = new FrameRowControl(listView.rowSpace / 2);
@@ -84,7 +85,7 @@
             rowModel.ButtonClickEvent += (sender, e) =>
             {
                 var form = new ACZbGatewayModuleUpdateForm();
-                form.AddForm(deviceMac);
+                form.AddForm(deviceAc);
             };
 
             //璋冩暣鍒楄〃楂樺害

--
Gitblit v1.8.0