| | |
| | | //清空bodyFrame
|
| | | this.ClearBodyFrame();
|
| | |
|
| | | var listBackControl = new VerticalFrameControl();
|
| | | listBackControl.Height = bodyFrameLayout.Height;
|
| | | bodyFrameLayout.AddChidren(listBackControl);
|
| | |
|
| | | bool gateWayExist = HdlGatewayLogic.Current.IsGatewayExist(zbGateway);
|
| | |
|
| | | var framePic = new FrameLayout();
|
| | |
| | | framePic.Height = Application.GetRealHeight(570);
|
| | | framePic.Gravity = Gravity.CenterHorizontal;
|
| | | framePic.Y = Application.GetRealHeight(58);
|
| | | bodyFrameLayout.AddChidren(framePic);
|
| | | listBackControl.frameTable.AddChidren(framePic);
|
| | | //图片
|
| | | var btnImage = new PicViewControl(380, 328, true);
|
| | | btnImage.Gravity = Gravity.Center;
|
| | |
| | |
|
| | | //初始化桌布
|
| | | var tableContr = new InformationEditorControl();
|
| | | var listview = tableContr.InitControl(bodyFrameLayout, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 708, 1028);
|
| | | var listview = tableContr.InitControl(listBackControl.frameTable, Language.StringByID(R.MyInternationalizationString.uDeviceEditor), 1028);
|
| | |
|
| | | //设备备注(如果这个网关没有绑定的话,只允许查看,不能更改)
|
| | | string caption = Language.StringByID(R.MyInternationalizationString.uDeviceNote);
|
| | |
| | | btnBeloneArea.AddBottomLine();
|
| | |
|
| | | //完成初始化桌布
|
| | | tableContr.FinishInitControl(bodyFrameLayout, listview);
|
| | | tableContr.FinishInitControl();
|
| | |
|
| | | if (gateWayExist == true)
|
| | | {
|
| | | //更多配置
|
| | | var btnHelp = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(49), false);
|
| | | var btnHelp = new NormalViewControl(listBackControl.frameTable.Width, Application.GetRealHeight(49), false);
|
| | | btnHelp.Y = Application.GetRealHeight(1388);
|
| | | btnHelp.TextSize = 12;
|
| | | btnHelp.TextAlignment = TextAlignment.Center;
|
| | |
| | | var form = new GatewayManage.GatewayInfoEditorForm();
|
| | | this.AddFromAndRemoveNowForm(form, zbGateway);
|
| | | };
|
| | | bodyFrameLayout.AddChidren(btnHelp);
|
| | | listBackControl.frameTable.AddChidren(btnHelp);
|
| | | //底线
|
| | | int lineWidth = btnHelp.GetRealWidthByText();
|
| | | var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
|
| | | btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
|
| | | btnLine.Gravity = Gravity.CenterHorizontal;
|
| | | btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8);
|
| | | bodyFrameLayout.AddChidren(btnLine);
|
| | | listBackControl.frameTable.AddChidren(btnLine);
|
| | | }
|
| | |
|
| | | //完成按钮
|