| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | | using ZigBee.Device;
|
| | |
|
| | | namespace Shared.Phone.UserCenter.DeviceAirConditioner
|
| | | {
|
| | |
| | | #region ■ 变量声明___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 设备mac地址
|
| | | /// 设备
|
| | | /// </summary>
|
| | | private string deviceMac = null;
|
| | | private AC deviceAc = null;
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | /// <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(AC i_deviceAc, bool hadNewVersion)
|
| | | {
|
| | | this.deviceMac = i_deviceMac;
|
| | | this.deviceAc = i_deviceAc;
|
| | |
|
| | | //设置头部信息
|
| | | base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uFirmwareUpdate));
|
| | |
| | | //这里是设备的Ota升级
|
| | | btnNewVersion.Visible = false;
|
| | | var form = new Device.DeviceFirmwareUpdateForm();
|
| | | form.AddForm(this.deviceMac);
|
| | | form.AddForm(this.deviceAc.DeviceAddr);
|
| | | };
|
| | | //提示有新版本
|
| | | btnNewVersion.UnSelectedImagePath = "Item/NewVersion.png";
|
| | |
| | | rowModel.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new ACZbGatewayModuleUpdateForm();
|
| | | form.AddForm(deviceMac);
|
| | | form.AddForm(deviceAc);
|
| | | };
|
| | |
|
| | | //调整列表高度
|