From 9064c76e6a795ae735cac52d98bed178a27c2a87 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 10 一月 2020 16:38:16 +0800
Subject: [PATCH] 合并代码

---
 ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
index 66242e7..ea1a998 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
@@ -104,6 +104,30 @@
 
             row1 = new FrameRowControl(listView.rowSpace / 2);
             listView.AddChidren(row1);
+            row1.AddLeftCaption("娓呴櫎缂撳瓨鏂囦欢", 500);
+            row1.AddRightArrow();
+            row1.ButtonClickEvent += (sender, e) =>
+            {
+                this.ShowMassage(ShowMsgType.Confirm, "鏄惁娓呴櫎缂撳瓨鏂囦欢", () =>
+                {
+                    var myPath = UserCenterLogic.CombinePath(DirNameResourse.LocalMemoryDirectory);
+                    try
+                    {
+                        System.IO.Directory.Delete(myPath, true);
+                        System.IO.Directory.CreateDirectory(myPath);
+                        this.ShowMassage(ShowMsgType.Tip, "娓呴櫎缂撳瓨鏂囦欢瀹屾垚,璇烽噸鏂扮櫥闄�");
+                        UserCenterLogic.ReLoginAgain(UserCenterResourse.UserInfo.Account);
+                    }
+                    catch (Exception ex)
+                    {
+                        this.ShowMassage(ShowMsgType.Error, "娓呴櫎缂撳瓨鏂囦欢寮傚父");
+                        HdlLogLogic.Current.WriteLog(ex, "娓呴櫎缂撳瓨鏂囦欢寮傚父");
+                    }
+                });
+            };
+
+            row1 = new FrameRowControl(listView.rowSpace / 2);
+            listView.AddChidren(row1);
             row1.AddLeftCaption("涓婁紶Log", 500);
             row1.AddRightArrow();
             row1.ButtonClickEvent += (sender, e) =>

--
Gitblit v1.8.0