From 26d1cdf2f5246c1ad7890e6740444c4a6a80e6fb Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期二, 11 八月 2020 13:21:10 +0800 Subject: [PATCH] 合并了新代码 --- ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs | 64 ++++++++++++++++++++++++++++++++ 1 files changed, 64 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs index 0dc5107..4db53f4 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs @@ -42,6 +42,15 @@ //鍒濆鍖栦腑閮ㄤ俊鎭� this.InitMiddleFrame(); + + if (UserCenterResourse.HideOption.StartDebugApp == 1) + { + //寮�鍚皟璇曟椂,涓嶅厑璁稿叧闂繖涓晫闈� + this.BackButtonClickEvent += (sender) => + { + return; + }; + } } /// <summary> @@ -234,6 +243,61 @@ btnTemp.TextAlignment = TextAlignment.Center; rowTemp.AddChidren(btnTemp); + //寮�鍚皟璇曞姛鑳� + if (UserCenterResourse.HideOption.StartDebugApp == 1) + { + row1 = new FrameRowControl(listView.rowSpace / 2); + listView.AddChidren(row1); + row1.AddLeftCaption("鎴愬憳鍒楄〃", 500); + row1.AddRightArrow(); + row1.AddBottomLine(); + row1.ButtonClickEvent += (sender, e) => + { + var form = new Member.MemberListForm(); + form.AddForm(); + }; + + row1 = new FrameRowControl(listView.rowSpace / 2); + listView.AddChidren(row1); + row1.AddLeftCaption("澶囦唤鍒楄〃", 500); + row1.AddRightArrow(); + row1.AddBottomLine(); + row1.ButtonClickEvent += (sender, e) => + { + var form = new HdlBackup.HdlBackupListForm(); + form.AddForm(); + }; + } + +#if Android + row1 = new FrameRowControl(listView.rowSpace / 2); + row1.UseClickStatu = false; + listView.AddChidren(row1); + row1.AddLeftCaption("涓婃姤GBS瀹氫綅鍔熻兘", 500); + row1.AddBottomLine(); + var btnGbsSwitch = row1.AddMostRightSwitchIcon(); + if (System.IO.File.Exists(DirNameResourse.OpenGbsFile) == true) + { + btnGbsSwitch.IsSelected = true; + } + btnGbsSwitch.ButtonClickEvent += (sender, e) => + { + this.ShowMassage(ShowMsgType.Confirm, "娉ㄦ剰:寮�鍚垨鑰呭叧闂鍔熻兘浼氶噸鍚疉pp", () => + { + btnGbsSwitch.IsSelected = !btnGbsSwitch.IsSelected; + if (btnGbsSwitch.IsSelected == true) + { + HdlFileLogic.Current.SaveTextToFile(DirNameResourse.OpenGbsFile, "nmsl"); + } + else + { + HdlFileLogic.Current.DeleteFile(DirNameResourse.OpenGbsFile); + } + HDLUtils.RestartApp(); + }); + }; +#endif + row1 = new FrameRowControl(listView.rowSpace / 2); listView.AddChidren(row1); row1.AddLeftCaption("閲嶇疆瀵煎叆鏍囪瘑", 500); -- Gitblit v1.8.0