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 |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
index ea1a998..5daaef9 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
@@ -106,6 +106,7 @@
             listView.AddChidren(row1);
             row1.AddLeftCaption("娓呴櫎缂撳瓨鏂囦欢", 500);
             row1.AddRightArrow();
+            row1.AddBottomLine();
             row1.ButtonClickEvent += (sender, e) =>
             {
                 this.ShowMassage(ShowMsgType.Confirm, "鏄惁娓呴櫎缂撳瓨鏂囦欢", () =>
@@ -126,6 +127,36 @@
                 });
             };
 
+#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);

--
Gitblit v1.8.0