| | |
| | |
|
| | | //初始化中部信息
|
| | | this.InitMiddleFrame();
|
| | |
|
| | | if (UserCenterResourse.HideOption.StartDebugApp == 1)
|
| | | {
|
| | | //开启调试时,不允许关闭这个界面
|
| | | this.BackButtonClickEvent += (sender) =>
|
| | | {
|
| | | return;
|
| | | };
|
| | | }
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | 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, "注意:开启或者关闭此功能会重启App", () =>
|
| | | {
|
| | | 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);
|