From ecba45c93391066bc30c7bd602c3a7683fbb99a7 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期五, 31 七月 2020 10:56:12 +0800
Subject: [PATCH] 临时备份

---
 ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessApSelectNetworkForm.cs |   94 +++++++---------------------------------------
 1 files changed, 15 insertions(+), 79 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessApSelectNetworkForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessApSelectNetworkForm.cs
index 7c52b22..c3a2d29 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessApSelectNetworkForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/Gateway/Add/WirelessApSelectNetworkForm.cs
@@ -1,5 +1,6 @@
 锘縰sing System;
 using System.Collections.Generic;
+using System.Security.Cryptography;
 using System.Text;
 
 namespace Shared.Phone.UserCenter.GatewayAdd
@@ -51,35 +52,25 @@
             rowWifi.InitControl();
             rowWifi.AddBottomLine();
             rowWifi.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputHomeWifiAccount);
-            //涓嬫媺鍥炬爣鏄亸鍙崇殑
-            rowWifi.RightOffset = -Application.GetRealWidth(18);
-            var btnDrop = rowWifi.AddMostRightEmptyIcon(58, 58);
-            btnDrop.UnSelectedImagePath = "Item/Down.png";
-            rowWifi.ChangedChidrenBindMode(btnDrop, ChidrenBindMode.NotBind);
-            btnDrop.ButtonClickEvent += (sender, e) =>
-            {
-                //鏄剧ずWifi涓嬫媺鍒楄〃
-                this.ShowWifiListView(rowWifi);
-            };
 
             //瀵嗙爜
-            var rowPsw = new FrameCaptionInputControl(Language.StringByID(R.MyInternationalizationString.uPassword), string.Empty);
-            rowPsw.Y = rowWifi.Bottom + Application.GetRealHeight(9);
-            frameBack.AddChidren(rowPsw);
-            rowPsw.InitControl();
-            rowPsw.txtInput.SecureTextEntry = true;
-            rowPsw.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputWifiPassword);
-            var btnView = rowPsw.AddMostRightEmptyIcon(81, 81);
+            var btnPsw = new FrameCaptionInputControl(Language.StringByID(R.MyInternationalizationString.uPassword), string.Empty);
+            btnPsw.Y = rowWifi.Bottom + Application.GetRealHeight(9);
+            frameBack.AddChidren(btnPsw);
+            btnPsw.InitControl();
+            btnPsw.txtInput.SecureTextEntry = true;
+            btnPsw.txtInput.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInputWifiPassword);
+            var btnView = btnPsw.AddMostRightEmptyIcon(81, 81);
             btnView.UnSelectedImagePath = "Item/HidenPWD.png";
             btnView.SelectedImagePath = "Item/UnHidenPWD.png";
-            rowPsw.ChangedChidrenBindMode(btnView, ChidrenBindMode.NotBind);
+            btnPsw.ChangedChidrenBindMode(btnView, ChidrenBindMode.NotBind);
             btnView.ButtonClickEvent += (sender, e) =>
             {
                 btnView.IsSelected = !btnView.IsSelected;
-                rowPsw.txtInput.SecureTextEntry = !rowPsw.txtInput.SecureTextEntry;
+                btnPsw.txtInput.SecureTextEntry = !btnPsw.txtInput.SecureTextEntry;
             };
 
-            var btnMsg = new NormalViewControl(rowPsw.txtInput.Width, false);
+            var btnMsg = new NormalViewControl(btnPsw.txtInput.Width, false);
             btnMsg.X = ControlCommonResourse.XXLeft;
             btnMsg.Y = frameBack.Bottom + Application.GetRealHeight(23);
             btnMsg.TextSize = 12;
@@ -109,14 +100,14 @@
                     btnMsg.Text = Language.StringByID(R.MyInternationalizationString.uPleaseInputHomeWifiAccount);
                     return;
                 }
-                if (rowPsw.Text == string.Empty)
+                if (btnPsw.Text == string.Empty)
                 {
                     //璇疯緭鍏ifi瀵嗙爜
                     btnMsg.Text = Language.StringByID(R.MyInternationalizationString.uPleaseInputWifiPassword);
                     return;
                 }
                 //鍙戦�佸瘑鐮�
-                var result = HdlWifiLogic.Current.SendApHomeWifiPassword(rowWifi.Text, rowPsw.Text);
+                var result = HdlWifiLogic.Current.SendApHomeWifiPassword(rowWifi.Text, btnPsw.Text);
                 if (result == false)
                 {
                     //瀵嗙爜鍙戦�佸け璐�
@@ -124,66 +115,11 @@
                     return;
                 }
 
-                this.CloseForm();
-                var form = new MiniGatewayDirection3Form();
-                form.AddForm();
+                var form = new WirelessApDirection3Form();
+                this.AddFromAndRemoveNowForm(form);
             };
         }
 
-        #endregion
-
-        #region 鈻� 鏄剧ずWifi涓嬫媺鍒楄〃___________________
-
-        /// <summary>
-        /// 鏄剧ずWifi涓嬫媺鍒楄〃
-        /// </summary>
-        /// <param name="rowWifi"></param>
-        private void ShowWifiListView(FrameCaptionInputControl rowWifi)
-        {
-            //涓�涓彲浠ラ伄浣廈ody鐨勪笢瑗�
-            var frameTran = new NormalFrameLayout();
-            frameTran.Height = bodyFrameLayout.Height;
-            frameTran.BackgroundColor = UserCenterColor.Current.DialogBackColor;
-            bodyFrameLayout.AddChidren(frameTran);
-            frameTran.ButtonClickEvent += (sender, e) =>
-            {
-                frameTran.RemoveFromParent();
-            };
-            //鐧借壊鑳屾櫙妗�
-            var frameList = new NormalFrameLayout();
-            frameList.Y = rowWifi.Bottom;
-            frameList.Gravity = Gravity.CenterHorizontal;
-            frameList.Width = frameTran.Width - ControlCommonResourse.XXLeft * 2;
-            frameList.Height = this.GetPictrueRealSize(1200);
-            frameList.Radius = (uint)Application.GetRealWidth(17);
-            frameList.BackgroundColor = UserCenterColor.Current.White;
-            frameTran.AddChidren(frameList);
-            //鍒楄〃鎺т欢
-            var listView = new VerticalListControl();
-            listView.Height = frameList.Height;
-            frameList.AddChidren(listView);
-
-            for (int i = 1; i <= 10; i++)
-            {
-                var frameRow = new FrameRowControl();
-                listView.AddChidren(frameRow);
-                //wifi鍚嶅瓧
-                var btnWifi = new NormalViewControl(frameRow.Width, frameRow.Height - ControlCommonResourse.BottomLineHeight, false);
-                btnWifi.X = ControlCommonResourse.XXLeft;
-                btnWifi.Text = "Application Software" + i;
-                frameRow.AddChidren(btnWifi, ChidrenBindMode.BindEvent);
-                //搴曠嚎
-                var btnLine = new NormalViewControl(frameRow.Width, ControlCommonResourse.BottomLineHeight, false);
-                btnLine.BackgroundColor = UserCenterColor.Current.ButtomLine;
-                btnLine.Y = btnWifi.Bottom;
-                frameRow.AddChidren(btnLine, ChidrenBindMode.BindEvent);
-                frameRow.ButtonClickEvent += (sender, e) =>
-                {
-                    rowWifi.Text = btnWifi.Text;
-                    frameTran.RemoveFromParent();
-                };
-            }
-        }
         #endregion
 
         #region 鈻� 鐣岄潰鍏抽棴___________________________

--
Gitblit v1.8.0