黄学彪
2020-12-17 9f326f4000847e6167d8166fa2f6a66f53cb3734
ZigbeeApp/Shared/Phone/UserCenter/Gateway/Manage/GatewayAddSuccessForm.cs
@@ -20,7 +20,7 @@
        /// </summary>
        public void ShowForm()
        {
            if (UserCenterResourse.DicActionForm.ContainsKey("WiredGatewayListForm") == true)
            if (HdlFormLogic.Current.IsFormOpen("WiredGatewayListForm") == true)
            {
                //设置头部信息  添加有线网关
                base.SetTitleText(Language.StringByID(R.MyInternationalizationString.uAddWiredGateway));
@@ -51,6 +51,7 @@
            //添加智能网关成功
            var btnMsg = new NormalViewControl(bodyFrameLayout.Width, Application.GetRealHeight(85), false);
            btnMsg.IsBold = true;
            btnMsg.Y = Application.GetRealHeight(732);
            btnMsg.TextAlignment = TextAlignment.Center;
            btnMsg.TextSize = 20;
@@ -58,7 +59,7 @@
            bodyFrameLayout.AddChidren(btnMsg);
            //继续添加网关
            var frameAdd = new FrameLayoutControl();
            var frameAdd = new FrameLayoutStatuControl();
            frameAdd.UseClickStatu = false;
            frameAdd.Y = Application.GetRealHeight(1224);
            frameAdd.Gravity = Gravity.CenterHorizontal;
@@ -67,20 +68,18 @@
            frameAdd.BackgroundImagePath = "Item/BottomButtonGround.png";
            bodyFrameLayout.AddChidren(frameAdd);
            var btnAdd = new NormalViewControl(300, 65, true);
            btnAdd.IsBold = true;
            btnAdd.TextColor = UserCenterColor.Current.White;
            btnAdd.TextSize = 16;
            btnAdd.Y = Application.GetRealHeight(49);
            btnAdd.Gravity = Gravity.CenterHorizontal;
            btnAdd.TextAlignment = TextAlignment.Center;
            btnAdd.TextID = R.MyInternationalizationString.uContinuteToAddGateway;
            frameAdd.AddChidren(btnAdd, ChidrenBindMode.BindEventOnly);
            frameAdd.AddChidren(btnAdd, ChidrenBindMode.BindEvent);
            frameAdd.ButtonClickEvent += (sender, e) =>
            {
                //关闭自身
                this.CloseForm();
                //关闭列表界面
                this.CloseFormByFormName("WiredGatewayListForm");
                //让它退到菜单选择界面
                HdlFormLogic.Current.CloseAllOpenForm("NewGateWayMenuSelectForm");
            };
            //返回主页
@@ -90,13 +89,8 @@
            bodyFrameLayout.AddChidren(btnGoback);
            btnGoback.ButtonClickEvent += (sender, e) =>
            {
                //关闭自身
                this.CloseForm();
                //关闭列表界面
                this.CloseFormByFormName("WiredGatewayListForm");
                //关闭菜单选择界面
                this.CloseFormByFormName("NewGateWayMenuSelectForm");
                //让它退到主页
                HdlFormLogic.Current.CloseAllOpenForm(null, true);
            };
        }