using System;
using System.Collections.Generic;
using System.Text;
using ZigBee.Device;
namespace Shared.Phone.UserCenter.HideOption
{
///
/// 隐匿功能的网关信息菜单界面
///
public class HideOptionGatewayInfoMenuForm : EditorCommonForm
{
#region ■ 变量声明___________________________
///
/// 网关对象
///
private ZbGateway zbGateway = null;
#endregion
#region ■ 初始化_____________________________
///
/// 画面显示(底层会固定调用此方法,借以完成画面创建)
///
///
public void ShowForm(ZbGateway i_gateway)
{
this.zbGateway = i_gateway;
//设置标题信息
base.SetTitleText("网关菜单");
//初始化中部控件
this.InitMiddleFrame();
}
///
/// 初始化中部控件
///
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
}
}