陈嘉乐
2020-07-10 48ba446936b51fffafa7c3600c0dadc6ac0e8c20
ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewaySearchListForm.cs
@@ -84,7 +84,7 @@
        /// <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)
            {
                //如果本地没有,那么应该是在之后的编辑界面删除了
@@ -148,13 +148,8 @@
                };
            }
            //定位
            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) =>
            {
                //发送定位命令
@@ -177,5 +172,23 @@
        }
        #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
    }
}