| | |
| | | /// <param name="addLine"></param>
|
| | | private void AddGatewayRow(VerticalListControl listView, ZbGateway gateway, bool addLine)
|
| | | {
|
| | | string gwid = HdlGatewayLogic.Current.GetGatewayId(gateway);
|
| | | string gwid = gateway.GwId;
|
| | | if (this.dicZbGatewayDiv[gwid] != 2)
|
| | | {
|
| | | //如果本地没有,那么应该是在之后的编辑界面删除了
|
| | |
| | | };
|
| | | }
|
| | | //定位
|
| | | var btnPosition = new NormalViewControl(Application.GetRealWidth(184), frameRow.Height, false);
|
| | | btnPosition.BackgroundColor = 0xff4a4a4a;
|
| | | btnPosition.TextAlignment = TextAlignment.Center;
|
| | | btnPosition.TextColor = UserCenterColor.Current.White;
|
| | | btnPosition.TextSize = 12;
|
| | | var btnPosition = frameRow.AddEditorControl(false);
|
| | | btnPosition.TextID = R.MyInternationalizationString.uFixedPosition;
|
| | | frameRow.AddRightView(btnPosition);
|
| | | btnPosition.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //发送定位命令
|
| | |
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 界面关闭___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 界面关闭
|
| | | /// </summary>
|
| | | public override void CloseFormBefore()
|
| | | {
|
| | | var userPageForm = UserView.UserPage.Instance.GetNowActionForm();
|
| | | if (userPageForm != null && userPageForm.FormID == "UserMainForm")
|
| | | {
|
| | | //刷新主页
|
| | | UserView.UserPage.Instance.ReFreshControl();
|
| | | }
|
| | | base.CloseFormBefore();
|
| | | }
|
| | |
|
| | | #endregion
|
| | | }
|
| | | }
|