From af4101b1d8461331bc3163b738fc75d4bf67c85c Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 28 七月 2020 17:47:44 +0800
Subject: [PATCH] 2020-07-28-1

---
 HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs |   35 ++++++++++++++++++++++++++---------
 1 files changed, 26 insertions(+), 9 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
index 285c2f0..a4f5353 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PersonalDataPageBLL.cs
@@ -1,4 +1,5 @@
 锘縰sing System;
+using HDL_ON.Entity;
 using Shared;
 
 namespace HDL_ON.UI
@@ -21,7 +22,8 @@
         /// </summary>
         void LoadEvent_ChangeHeadImageView()
         {
-            userHeadImageView.MouseUpEventHandler = (sender, e) => {
+            userHeadImageView.MouseUpEventHandler = (sender, e) =>
+            {
                 LoadPictureOptionView();
             };
         }
@@ -31,13 +33,15 @@
         /// </summary>
         void LoadEvent_Logout()
         {
-            btnLogout.MouseUpEventHandler += (sender, e) => {
+            btnLogout.MouseUpEventHandler += (sender, e) =>
+            {
                 MainPage.LoginUser.lastTime = DateTime.MinValue;
                 MainPage.LoginUser.SaveUserInfo();
                 MainPage.GoLoginPage(MainPage.LoginUser.accountString);
+                FileUtils.DeleteAllFile();
+                DB_ResidenceData.residenceData.EixtAccount();
             };
         }
-
 
         /// <summary>
         /// 鍔犺浇鑳屾櫙鍥鹃�夋嫨鍖哄煙浜嬩欢鍒楄〃
@@ -56,6 +60,11 @@
 
             btnTakePicture.MouseUpEventHandler = (sender, e) =>
             {
+                btnTakePicture.IsSelected = true;
+            };
+            btnTakePicture.MouseUpEventHandler = (sender, e) =>
+            {
+                btnTakePicture.IsSelected = false;
                 var pid = Guid.NewGuid();
                 CropImage.TakePicture((Action<string>)((imagePath) =>
                 {
@@ -78,6 +87,12 @@
 
             btnAlbum.MouseUpEventHandler = (sender, e) =>
             {
+                btnAlbum.IsSelected = true;
+            };
+
+            btnAlbum.MouseUpEventHandler = (sender, e) =>
+            {
+                btnAlbum.IsSelected = false;
                 var pid = Guid.NewGuid();
                 CropImage.SelectPicture((imagePath) =>
                 {
@@ -149,8 +164,8 @@
                                 }
                                 Application.RunOnMainThread(() =>
                                 {
-                                //鎻愮ず鍘熷洜
-                                var tip = new Tip()
+                                    //鎻愮ず鍘熷洜
+                                    var tip = new Tip()
                                     {
                                         Text = tipStr,
                                         CloseTime = 3,
@@ -159,20 +174,22 @@
                                     tip.Show(bodyView);
                                 });
                             }
-                        }catch (Exception ex)
+                        }
+                        catch (Exception ex)
                         {
                             MainPage.Log($"update user name error : {ex.Message}");
                         }
                         finally
                         {
-                            Application.RunOnMainThread(() => {
+                            Application.RunOnMainThread(() =>
+                            {
                                 waitPage.Hide();
                             });
                         }
                     })
                     { IsBackground = true }.Start();
                 };
-                new PublicAssmebly().LoadDialog_EditParater(StringId.UesrName, MainPage.LoginUser.userName, callBack);
+                new PublicAssmebly().LoadDialog_EditParater(StringId.UesrName, MainPage.LoginUser.userName, callBack, StringId.UesrNameCannotBeEmpty, 0, new System.Collections.Generic.List<string>());
             };
             btnUserName.MouseUpEventHandler = eventHandler;
             btnEditUserNameIcon.MouseUpEventHandler = eventHandler;
@@ -198,4 +215,4 @@
         #endregion
 
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.8.0