| | |
| | | //打开进度条
|
| | | 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(() =>
|
| | | {
|
| | |
| | | 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);
|
| | | };
|