陈嘉乐
2020-07-10 48ba446936b51fffafa7c3600c0dadc6ac0e8c20
ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessUdpSelectNetworkForm.cs
@@ -28,15 +28,17 @@
                //打开进度条
                this.ShowProgressBar();
                var ssid = HdlWifiLogic.Current.SSID;
                //关闭进度条
                this.CloseProgressBar();
                if (ssid == null)
                {
                    //获取网络SSID失败
                    string msg = Language.StringByID(R.MyInternationalizationString.uGetSsidFail);
                    this.ShowMassage(ShowMsgType.Error, msg);
                    this.ShowMassage(ShowMsgType.Tip, msg);
                    //关闭进度条
                    this.CloseProgressBar(ShowReLoadMode.YES);
                    return;
                }
                //关闭进度条
                this.CloseProgressBar();
                HdlThreadLogic.Current.RunMain(() =>
                {
@@ -96,15 +98,15 @@
            btnMsg.Y = frameBack.Bottom + Application.GetRealHeight(23);
            btnMsg.TextSize = 12;
            btnMsg.Height = Application.GetRealHeight(40);
            btnMsg.TextColor = UserCenterColor.Current.Red;
            btnMsg.TextColor = UserCenterColor.Current.ErrorColor;
            bodyFrameLayout.AddChidren(btnMsg);
            //查看帮助
            var btnHelp = this.AddHelpControl();
            btnHelp.ButtonClickEvent += (sender, e) =>
            {
                var form = new DeviceDirection.DeviceDirectionHelpForm();
                form.AddForm("WirelessUdp");
                var form = new AddGatewayHelpForm();
                form.AddForm("Udp");
            };
            //下一步
@@ -122,7 +124,7 @@
                    return;
                }
                //开始Wi-Fi配网
                HdlWifiLogic.Current.StartSmartConnection(rowWifi.Text, btnPsw.Text, "1");
                HdlWifiLogic.Current.StartSmartConnection(rowWifi.Text, btnPsw.Text, "");
                var form = new WirelessUdpSearchForm();
                this.AddFromAndRemoveNowForm(form);
            };