| | |
| | | /// <summary>
|
| | | /// 列表控件
|
| | | /// </summary>
|
| | | private VerticalListControl listview = null;
|
| | | private FrameListControl listview = null;
|
| | |
|
| | | #endregion
|
| | |
|
| | |
| | | //清空bodyFrame
|
| | | this.ClearBodyFrame();
|
| | |
|
| | | var listBackControl = new VerticalFrameControl();
|
| | | listBackControl.Height = bodyFrameLayout.Height;
|
| | | bodyFrameLayout.AddChidren(listBackControl);
|
| | |
|
| | | //初始化桌布
|
| | | var tableContr = new InformationEditorControl();
|
| | | this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 418, 1319);
|
| | | this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 1319);
|
| | |
|
| | | //图片
|
| | | var btnPic = new DeviceInfoIconControl();
|
| | | btnPic.Y = Application.GetRealHeight(46);
|
| | | btnPic.Gravity = Gravity.CenterHorizontal;
|
| | | bodyFrameLayout.AddChidren(btnPic);
|
| | | listBackControl.frameTable.AddChidren(btnPic);
|
| | | btnPic.InitControl(device.DeviceAddr, device.DeviceEpoint);
|
| | | btnPic.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | |
| | | btnBelongType.TextID = infoType.BeloneTextId;
|
| | | btnBelongType.TextSize = 15;
|
| | | btnBelongType.TextAlignment = TextAlignment.Center;
|
| | | bodyFrameLayout.AddChidren(btnBelongType);
|
| | | listBackControl.frameTable.AddChidren(btnBelongType);
|
| | |
|
| | | //功能名称
|
| | | string caption = Language.StringByID(R.MyInternationalizationString.FunctionName);
|
| | |
| | | this.AddFunctionTypeRowByAdmin(btnBelongType);
|
| | |
|
| | | //初始化桌布完成
|
| | | tableContr.FinishInitControl(bodyFrameLayout, this.listview);
|
| | | tableContr.FinishInitControl();
|
| | | tableContr = null;
|
| | |
|
| | | //保存
|
| | |
| | | //清空bodyFrame
|
| | | this.ClearBodyFrame();
|
| | |
|
| | | var listBackControl = new VerticalFrameControl();
|
| | | listBackControl.Height = bodyFrameLayout.Height;
|
| | | bodyFrameLayout.AddChidren(listBackControl);
|
| | |
|
| | | //初始化桌布
|
| | | var tableContr = new InformationEditorControl();
|
| | | this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 418, 1319);
|
| | | this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uInfoEditor), 1319);
|
| | |
|
| | | //图片
|
| | | var btnPic = new DeviceInfoIconControl();
|
| | | btnPic.Y = Application.GetRealHeight(92);
|
| | | btnPic.Gravity = Gravity.CenterHorizontal;
|
| | | bodyFrameLayout.AddChidren(btnPic);
|
| | | listBackControl.frameTable.AddChidren(btnPic);
|
| | | btnPic.InitControl(device.DeviceAddr, device.DeviceEpoint);
|
| | |
|
| | | //设备所属类型
|
| | |
| | | btnBelongType.TextID = infoType.BeloneTextId;
|
| | | btnBelongType.TextSize = 15;
|
| | | btnBelongType.TextAlignment = TextAlignment.Center;
|
| | | bodyFrameLayout.AddChidren(btnBelongType);
|
| | | listBackControl.frameTable.AddChidren(btnBelongType);
|
| | |
|
| | | //功能名称
|
| | | string caption = Language.StringByID(R.MyInternationalizationString.FunctionName);
|
| | |
| | | this.AddFunctionTypeRowByMember();
|
| | |
|
| | | //初始化桌布完成
|
| | | tableContr.FinishInitControl(bodyFrameLayout, this.listview);
|
| | | tableContr.FinishInitControl();
|
| | | tableContr = null;
|
| | | }
|
| | |
|