From d87400af518ebc9274f4447f06476959c3aa5102 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期二, 14 七月 2020 16:29:42 +0800
Subject: [PATCH] Merge branch 'dev-tzy' into dev-2020xm
---
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