using System;
|
using System.Collections.Generic;
|
using System.Text;
|
using ZigBee.Device;
|
|
namespace Shared.Phone.UserCenter.HideOption
|
{
|
/// <summary>
|
/// 隐匿功能的网关信息菜单界面
|
/// </summary>
|
public class HideOptionGatewayInfoMenuForm : EditorCommonForm
|
{
|
#region ■ 变量声明___________________________
|
|
/// <summary>
|
/// 网关对象
|
/// </summary>
|
private ZbGateway zbGateway = null;
|
|
#endregion
|
|
#region ■ 初始化_____________________________
|
|
/// <summary>
|
/// 画面显示(底层会固定调用此方法,借以完成画面创建)
|
/// </summary>
|
/// <param name="i_gateway"></param>
|
public void ShowForm(ZbGateway i_gateway)
|
{
|
this.zbGateway = i_gateway;
|
//设置标题信息
|
base.SetTitleText("网关菜单");
|
//初始化中部控件
|
this.InitMiddleFrame();
|
}
|
|
/// <summary>
|
/// 初始化中部控件
|
/// </summary>
|
private void InitMiddleFrame()
|
{
|
//清空bodyFrame
|
this.ClearBodyFrame();
|
|
var listview = new VerticalListControl(29);
|
listview.Height = bodyFrameLayout.Height;
|
listview.BackgroundColor = UserCenterColor.Current.White;
|
bodyFrameLayout.AddChidren(listview);
|
|
//网关信息
|
var rowContr1 = new RowLayoutControl(listview.rowSpace / 2);
|
listview.AddChidren(rowContr1);
|
rowContr1.frameTable.AddLeftCaption("网关信息", 700);
|
rowContr1.frameTable.AddRightArrow();
|
rowContr1.frameTable.AddBottomLine();
|
rowContr1.frameTable.ButtonClickEvent += (sender, e) =>
|
{
|
var form = new GatewayManage.GatewayInfoEditorForm();
|
form.AddForm(zbGateway);
|
};
|
|
//网关文件列表
|
var rowContr2 = new RowLayoutControl(listview.rowSpace / 2);
|
listview.AddChidren(rowContr2);
|
rowContr2.frameTable.AddLeftCaption("网关文件列表", 700);
|
rowContr2.frameTable.AddRightArrow();
|
rowContr2.frameTable.ButtonClickEvent += (sender, e) =>
|
{
|
var form = new HideOptionGatewayListFileForm();
|
form.AddForm(zbGateway);
|
};
|
|
listview.AdjustRealHeight(Application.GetRealHeight(23));
|
}
|
|
#endregion
|
}
|
}
|