From bd46c57c77c276014db3192a4e2cc96e23c93202 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 21 二月 2020 13:08:47 +0800
Subject: [PATCH] 先上传个版本吧

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

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
index 66242e7..5daaef9 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
@@ -104,6 +104,61 @@
 
             row1 = new FrameRowControl(listView.rowSpace / 2);
             listView.AddChidren(row1);
+            row1.AddLeftCaption("娓呴櫎缂撳瓨鏂囦欢", 500);
+            row1.AddRightArrow();
+            row1.AddBottomLine();
+            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, "娓呴櫎缂撳瓨鏂囦欢寮傚父");
+                    }
+                });
+            };
+
+#if Android
+            row1 = new FrameRowControl(listView.rowSpace / 2);
+            row1.UseClickStatu = false;
+            listView.AddChidren(row1);
+            row1.AddLeftCaption("GBS瀹氫綅", 500);
+            row1.AddBottomLine();
+            var btnGbsSwitch = row1.AddMostRightSwitchIcon();
+            string checkFile = System.IO.Path.Combine(Shared.IO.FileUtils.RootPath, Shared.Phone.UserCenter.DirNameResourse.OpenGbsFile);
+            if (System.IO.File.Exists(checkFile) == true)
+            {
+                btnGbsSwitch.IsSelected = true;
+            }
+            btnGbsSwitch.ButtonClickEvent += (sender, e) =>
+            {
+                this.ShowMassage(ShowMsgType.Confirm, "娉ㄦ剰:寮�鍚垨鑰呭叧闂鍔熻兘浼氶噸鍚疉pp", () =>
+                {
+                    btnGbsSwitch.IsSelected = !btnGbsSwitch.IsSelected;
+                    if (btnGbsSwitch.IsSelected == true)
+                    {
+                        var file = System.IO.File.Create(checkFile);
+                        file.Close();
+                    }
+                    else
+                    {
+                        System.IO.File.Delete(checkFile);
+                    }
+                    HDLUtils.RestartApp();
+                });
+            };
+#endif
+            row1 = new FrameRowControl(listView.rowSpace / 2);
+            listView.AddChidren(row1);
             row1.AddLeftCaption("涓婁紶Log", 500);
             row1.AddRightArrow();
             row1.ButtonClickEvent += (sender, e) =>

--
Gitblit v1.8.0