using System;
|
using System.Collections.Generic;
|
using System.Text;
|
using ZigBee.Device;
|
|
namespace Shared.Phone.UserCenter.DeviceAirConditioner
|
{
|
/// <summary>
|
/// 中央空调的模块升级界面
|
/// </summary>
|
public class ACZbGatewayModuleUpdateForm : EditorCommonForm
|
{
|
#region ■ 变量声明___________________________
|
|
/// <summary>
|
/// 设备mac地址
|
/// </summary>
|
private string deviceMac = null;
|
|
#endregion
|
|
#region ■ 初始化_____________________________
|
|
/// <summary>
|
/// 画面显示(底层会固定调用此方法,借以完成画面创建)
|
/// </summary>
|
/// <param name="i_deviceMac">设备mac地址</param>
|
public void ShowForm(string i_deviceMac)
|
{
|
this.deviceMac = i_deviceMac;
|
|
//设置头部信息
|
base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uAirConditioningModule));
|
|
//初始化中部信息
|
this.InitMiddleFrame();
|
}
|
|
/// <summary>
|
/// 初始化中部信息
|
/// </summary>
|
private void InitMiddleFrame()
|
{
|
//清空bodyFrame
|
this.ClearBodyFrame();
|
|
var frameBack = new FrameLayout();
|
frameBack.Height = Application.GetRealHeight(3);
|
frameBack.BackgroundColor = UserCenterColor.Current.White;
|
bodyFrameLayout.AddChidren(frameBack);
|
|
var listView = new VerticalListControl(29);
|
listView.Y = frameBack.Bottom;
|
listView.Height = bodyFrameLayout.Height - frameBack.Height;
|
listView.BackgroundColor = UserCenterColor.Current.White;
|
bodyFrameLayout.AddChidren(listView);
|
|
//升级
|
var btnUpdate = new BottomClickButton();
|
btnUpdate.TextID = R.MyInternationalizationString.uLevelUp;
|
bodyFrameLayout.AddChidren(btnUpdate);
|
btnUpdate.ButtonClickEvent += (sender, e) =>
|
{
|
};
|
}
|
|
#endregion
|
|
private async void DoDeviceUpdate()
|
{
|
var listDevice = Common.LocalDevice.Current.GetDevicesByMac(this.deviceMac);
|
if (listDevice.Count == 0)
|
{
|
return;
|
}
|
|
}
|
|
#region ■ 一般方法___________________________
|
|
#endregion
|
}
|
}
|