| | |
| | |
|
| | | //设备类型 (固定智能网关)
|
| | | caption = Language.StringByID(R.MyInternationalizationString.uDeviceType);
|
| | | var infoContent = Common.LocalDevice.Current.GetDeviceModelIdNameInfo("1");
|
| | | var infoContent = HdlDeviceCommonLogic.Current.GetDeviceModelIdNameInfo("1");
|
| | | var btnType = new FrameCaptionViewControl(caption, infoContent != null ? infoContent.A类型名字 : string.Empty, listview.rowSpace / 2);
|
| | | btnType.UseClickStatu = false;
|
| | | listview.AddChidren(btnType);
|
| | |
| | | btnHelp.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | var form = new GatewayManage.GatewayInfoEditorForm();
|
| | | this.AddFromAndRemoveNowForm(form, zbGateway);
|
| | | this.AddFormAndCloseNowForm(form, zbGateway);
|
| | | };
|
| | | listBackControl.frameTable.AddChidren(btnHelp);
|
| | | //底线
|
| | | int lineWidth = btnHelp.GetRealWidthByText();
|
| | | var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
|
| | | var btnLine = new NormalViewControl(lineWidth, HdlControlResourse.BottomLineHeight, false);
|
| | | btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor;
|
| | | btnLine.Gravity = Gravity.CenterHorizontal;
|
| | | btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8);
|
| | |
| | | //关闭自身
|
| | | this.CloseForm();
|
| | | //是否是主页添加
|
| | | if (UserCenterResourse.DicActionForm.ContainsKey("GatewayListForm") == false)
|
| | | if (HdlFormLogic.Current.IsFormOpen("GatewayListForm") == false)
|
| | | {
|
| | | var form = new GatewayAddSuccessForm();
|
| | | form.AddForm();
|