黄学彪
2020-12-17 9f326f4000847e6167d8166fa2f6a66f53cb3734
ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessApDirection3Form.cs
@@ -9,6 +9,10 @@
    /// </summary>
    public class WirelessApDirection3Form : EditorCommonForm
    {
        #region ■ 变量声明___________________________
        #endregion
        #region ■ 初始化_____________________________
        /// <summary>
@@ -35,8 +39,8 @@
            var btnHelp = this.AddHelpControl();
            btnHelp.ButtonClickEvent += (sender, e) =>
            {
                var form = new DeviceDirection.DeviceDirectionHelpForm();
                form.AddForm("WirelessUdp");
                var form = new AddGatewayHelpForm();
                form.AddForm("Ap");
            };
            //下一步
@@ -45,21 +49,28 @@
            bodyFrameLayout.AddChidren(btnNext);
            btnNext.ButtonClickEvent += (sender, e) =>
            {
                //如果还是热点模式
                if (HdlWifiLogic.Current.IsGatewayHotspot == true)
                {
                    //请链接家庭Wifi
                    this.ShowMassage(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uPleaseLinkHomeWifi));
                    return;
                }
                var form = new WirelessApSearchForm();
                this.AddFromAndRemoveNowForm(form);
                this.AddFormAndCloseNowForm(form);
            };
            btnNext.Visible = false;
            //图片
            var framePic = new FrameLayout();
            framePic.Width = Application.GetMinRealAverage(861);
            framePic.Height = Application.GetMinRealAverage(245);
            framePic.Width = this.GetPictrueRealSize(861);
            framePic.Height = this.GetPictrueRealSize(245);
            framePic.Gravity = Gravity.CenterHorizontal;
            framePic.Y = Application.GetRealHeight(363);
            framePic.BackgroundImagePath = "Gateway/WirelessApGatewaySearching.png";
            bodyFrameLayout.AddChidren(framePic);
            //请前往移动设备WLAN设置
            //重新连接家庭wiFi
            //手机去设置连接路由器
            string[] ArryMsg = Language.StringByID(R.MyInternationalizationString.uAddApWirelessGatewayMsg3).Split(new string[] { "{0}" }, StringSplitOptions.RemoveEmptyEntries);
            int yy = framePic.Bottom + Application.GetRealHeight(369);
            foreach (var msg in ArryMsg)
@@ -82,11 +93,13 @@
            btnSettion.Text = Language.StringByID(R.MyInternationalizationString.uGotoSettion);
            btnSettion.ButtonClickEvent += (sender, e) =>
            {
                HdlWifiLogic.Current.OpenAppWifiSettion();
                btnNext.Visible = true;
            };
            bodyFrameLayout.AddChidren(btnSettion);
            //底线
            int lineWidth = btnSettion.GetRealWidthByText(12);
            var btnLine1 = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false);
            int lineWidth = btnSettion.GetRealWidthByText();
            var btnLine1 = new NormalViewControl(lineWidth, HdlControlResourse.BottomLineHeight, false);
            btnLine1.BackgroundColor = 0xff0075ff;
            btnLine1.Gravity = Gravity.CenterHorizontal;
            btnLine1.Y = btnSettion.Bottom - Application.GetRealHeight(8);