HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2019-12-02 4c40f503acf2bcf90d294cc439ef46ba259b9c60
ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessApSelectNetworkForm.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Security.Cryptography;
using System.Text;
namespace Shared.Phone.UserCenter.GatewayAdd
@@ -45,7 +46,7 @@
            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();
@@ -105,11 +106,35 @@
                    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
    }
}