From eda3fb873e59544ff36301b51e05aef64f87b0f9 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 27 八月 2021 13:21:21 +0800
Subject: [PATCH] Merge branch 'newBranch1' of http://172.16.1.23:6688/r/~wxr/HDL_APP_Project into newBranch1

---
 HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockSettingsPageBLL.cs |  103 ++++++++++++++++++++++++++-------------------------
 1 files changed, 53 insertions(+), 50 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockSettingsPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockSettingsPageBLL.cs
index 50d6980..43e9dc3 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockSettingsPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/UnlockSetting/AppUnlockSettingsPageBLL.cs
@@ -32,8 +32,10 @@
                 {
                     btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = true;
                     btnStartupBg.IsSelected = btnStartupSelectionIcon.IsSelected = btnStartupSelectionTip.IsSelected = false;
-                    btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = false;
+                    #region F3闃舵
+                    //btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = false;
                     btnDoorlockBg.IsSelected = btnDoorlockSelectionIcon.IsSelected = btnDoorlockSelectionTip.IsSelected = false;
+                    #endregion
 
                     btnTipMsg.TextID = StringId.UnprotectedTipMsg;
 
@@ -131,50 +133,48 @@
             btnStartupSelectionIcon.MouseUpEventHandler = eventHandler2;
             btnStartupSelectionTip.MouseUpEventHandler = eventHandler2;
 
-            EventHandler<MouseEventArgs> eventHandler3 = (sender, e) =>
-            {
-                bool result = !btnSecurityBg.IsSelected;
-                if (!result)
-                {
-                    //濡傛灉鍙墿甯冮槻/鎾ら槻涓�绉� 涓嶈兘鍙栨秷甯冮槻/鎾ら槻
-                    if (!CheckIfCanDeselect("2")) return;
-                }
-
-                btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = result;
-
-                btnTipMsg.Text = Language.StringByID(StringId.DefenseAndUndefenseTipMsg);
-
-                if (result)
-                {
-                    btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = false;
-                    if (!UserInfo.Current.appUnlockPage.Contains("2"))
-                    {
-                        UserInfo.Current.appUnlockPage.Add("2");
-                        if (UserInfo.Current.appUnlockPasswrod != "")
-                            UserInfo.Current.SaveUserInfo();
-                    }
-                    unlockOptionView.Visible = true;
-                }
-                else
-                {
-                    if (UserInfo.Current.appUnlockPage.Contains("2"))
-                    {
-                        UserInfo.Current.appUnlockPage.Remove("2");
-                    }
-                    if (UserInfo.Current.appUnlockPage.Count == 0)
-                    {
-                        btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = result;
-                        btnTipMsg.TextID = StringId.UnprotectedTipMsg;
-                        UserInfo.Current.appUnlockPasswrod = "";
-                        unlockOptionView.Visible = false;
-                        refreshAction();
-                    }
-                    UserInfo.Current.SaveUserInfo();
-                }
-            };
-            btnSecurityBg.MouseUpEventHandler = eventHandler3;
-            btnSecuritySelectionIcon.MouseUpEventHandler = eventHandler3;
-            btnSecuritySelectionTip.MouseUpEventHandler = eventHandler3;
+            #region F3闃舵
+            //EventHandler<MouseEventArgs> eventHandler3 = (sender, e) =>
+            //{
+            //    bool result = !btnSecurityBg.IsSelected;
+            //    if (!result)
+            //    {
+            //        //濡傛灉鍙墿甯冮槻/鎾ら槻涓�绉� 涓嶈兘鍙栨秷甯冮槻/鎾ら槻
+            //        if (!CheckIfCanDeselect("2")) return;
+            //    }
+            //    btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = result;
+            //    btnTipMsg.Text = Language.StringByID(StringId.DefenseAndUndefenseTipMsg);
+            //    if (result)
+            //    {
+            //        btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = false;
+            //        if (!UserInfo.Current.appUnlockPage.Contains("2"))
+            //        {
+            //            UserInfo.Current.appUnlockPage.Add("2");
+            //            if (UserInfo.Current.appUnlockPasswrod != "")
+            //                UserInfo.Current.SaveUserInfo();
+            //        }
+            //        unlockOptionView.Visible = true;
+            //    }
+            //    else
+            //    {
+            //        if (UserInfo.Current.appUnlockPage.Contains("2"))
+            //        {
+            //            UserInfo.Current.appUnlockPage.Remove("2");
+            //        }
+            //        if (UserInfo.Current.appUnlockPage.Count == 0)
+            //        {
+            //            btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = result;
+            //            btnTipMsg.TextID = StringId.UnprotectedTipMsg;
+            //            UserInfo.Current.appUnlockPasswrod = "";
+            //            unlockOptionView.Visible = false;
+            //            refreshAction();
+            //        }
+            //        UserInfo.Current.SaveUserInfo();
+            //    }
+            //};
+            //btnSecurityBg.MouseUpEventHandler = eventHandler3;
+            //btnSecuritySelectionIcon.MouseUpEventHandler = eventHandler3;
+            //btnSecuritySelectionTip.MouseUpEventHandler = eventHandler3;
 
             EventHandler<MouseEventArgs> eventHandler4 = (sender, e) =>
             {
@@ -219,6 +219,7 @@
             btnDoorlockBg.MouseUpEventHandler = eventHandler4;
             btnDoorlockSelectionIcon.MouseUpEventHandler = eventHandler4;
             btnDoorlockSelectionTip.MouseUpEventHandler = eventHandler4;
+            #endregion
         }
 
         /// <summary>
@@ -237,16 +238,18 @@
                     btnStartupBg.IsSelected = btnStartupSelectionIcon.IsSelected = btnStartupSelectionTip.IsSelected = true;
                     btnTipMsg.Text = Language.StringByID(StringId.AtStartupTipMsg);
                 }
-                if (UserInfo.Current.appUnlockPage.Contains("2"))
-                {
-                    btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = true;
-                    btnTipMsg.Text = Language.StringByID(StringId.DefenseAndUndefenseTipMsg);
-                }
+                #region F3闃舵
+                //if (UserInfo.Current.appUnlockPage.Contains("2"))
+                //{
+                //    btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = true;
+                //    btnTipMsg.Text = Language.StringByID(StringId.DefenseAndUndefenseTipMsg);
+                //}
                 if (UserInfo.Current.appUnlockPage.Contains("3"))
                 {
                     btnDoorlockBg.IsSelected = btnDoorlockSelectionIcon.IsSelected = btnDoorlockSelectionTip.IsSelected = true;
                     btnTipMsg.Text = Language.StringByID(StringId.RemoteUnlockingTipMsg);
                 }
+                #endregion
             }
         }
 

--
Gitblit v1.8.0