using System;
using System.Collections.Generic;
using System.Text;
using ZigBee.Device;
namespace Shared.Phone.UserCenter.DeviceAirConditioner
{
///
/// 中央空调的模块升级界面
///
public class ACZbGatewayModuleUpdateForm : EditorCommonForm
{
#region ■ 变量声明___________________________
///
/// 设备mac地址
///
private string deviceMac = null;
#endregion
#region ■ 初始化_____________________________
///
/// 画面显示(底层会固定调用此方法,借以完成画面创建)
///
/// 设备mac地址
public void ShowForm(string i_deviceMac)
{
this.deviceMac = i_deviceMac;
//设置头部信息
base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uAirConditioningModule));
//初始化中部信息
this.InitMiddleFrame();
}
///
/// 初始化中部信息
///
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
}
}