| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Security.Cryptography;
|
| | | using System.Text;
|
| | |
|
| | | namespace Shared.Phone.UserCenter.GatewayAdd
|
| | |
| | | frameBack.AddChidren(btnTitle);
|
| | |
|
| | | //WIFI
|
| | | var rowWifi = new FrameCaptionInputControl("WiFi", HdlWifiLogic.Current.SSID);
|
| | | var rowWifi = new FrameCaptionInputControl("WiFi", "");
|
| | | rowWifi.Y = Application.GetRealHeight(124);
|
| | | frameBack.AddChidren(rowWifi);
|
| | | rowWifi.InitControl();
|
| | |
| | | btnMsg.Text = Language.StringByID(R.MyInternationalizationString.uPleaseInputWifiPassword);
|
| | | return;
|
| | | }
|
| | | //发送密码
|
| | | var result = HdlWifiLogic.Current.SendApHomeWifiPassword(rowWifi.Text, btnPsw.Text);
|
| | | if (result == false)
|
| | | {
|
| | | //密码发送失败
|
| | | this.ShowMassage(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uSendPasswordFail));
|
| | | return;
|
| | | }
|
| | |
|
| | | var form = new WirelessApDirection3Form();
|
| | | this.AddFromAndRemoveNowForm(form);
|
| | | };
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 界面关闭___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 界面关闭
|
| | | /// </summary>
|
| | | public override void CloseFormBefore()
|
| | | {
|
| | | //关闭Tcp链接
|
| | | HdlWifiLogic.Current.CloseApTcpConnection();
|
| | |
|
| | | base.CloseFormBefore();
|
| | | }
|
| | |
|
| | | #endregion
|
| | | }
|
| | | }
|