| | |
| | | /// <summary>
|
| | | /// 列表控件
|
| | | /// </summary>
|
| | | private VerticalListControl listview = null;
|
| | | private FrameListControl listview = null;
|
| | | /// <summary>
|
| | | /// 当前选择的设备
|
| | | /// </summary>
|
| | |
| | | //清空bodyFrame
|
| | | this.ClearBodyFrame();
|
| | |
|
| | | var listBackControl = new VerticalFrameControl();
|
| | | listBackControl.Height = bodyFrameLayout.Height;
|
| | | bodyFrameLayout.AddChidren(listBackControl);
|
| | |
|
| | | //初始化桌布
|
| | | this.tableContr = new InformationEditorControl();
|
| | | this.listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 708, 1028);
|
| | | this.listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1028);
|
| | |
|
| | | //初始化设备回路图标
|
| | | this.InitDeviceEpointIcon();
|
| | | this.InitDeviceEpointIcon(listBackControl);
|
| | |
|
| | | //保存
|
| | | var btnFinish = new BottomClickButton();
|
| | |
| | | //添加功能类型行
|
| | | this.AddFunctionTypeRow();
|
| | | //初始化桌布完成
|
| | | tableContr.FinishInitControl(bodyFrameLayout, this.listview);
|
| | | tableContr.FinishInitControl();
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
| | | /// <summary>
|
| | | /// 初始化设备回路图标
|
| | | /// </summary>
|
| | | private void InitDeviceEpointIcon()
|
| | | private void InitDeviceEpointIcon(VerticalFrameControl listBackControl)
|
| | | {
|
| | | bool hadDevice = false;
|
| | | var listDevice = Common.LocalDevice.Current.GetDevicesByMac(deviceObj.DeviceAddr);
|
| | |
| | | frameBorder.Gravity = Gravity.CenterHorizontal;
|
| | | frameBorder.Width = Application.GetMinRealAverage(426);
|
| | | frameBorder.Height = Application.GetMinRealAverage(426);
|
| | | bodyFrameLayout.AddChidren(frameBorder);
|
| | | listBackControl.frameTable.AddChidren(frameBorder);
|
| | |
|
| | | var btnPic = new PicViewControl(frameBorder.Width, frameBorder.Height, false);
|
| | |
|