| | |
| | | };
|
| | | }
|
| | |
|
| | | #if Android
|
| | | row1 = new FrameRowControl(listView.rowSpace / 2);
|
| | | row1.UseClickStatu = false;
|
| | | listView.AddChidren(row1);
|
| | | row1.AddLeftCaption("上报GBS定位功能", 500);
|
| | | row1.AddLeftCaption("记录定位", 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", () =>
|
| | | if (btnGbsSwitch.IsSelected == true)
|
| | | {
|
| | | btnGbsSwitch.IsSelected = !btnGbsSwitch.IsSelected;
|
| | | if (btnGbsSwitch.IsSelected == true)
|
| | | {
|
| | | HdlFileLogic.Current.SaveTextToFile(DirNameResourse.OpenGbsFile, "nmsl");
|
| | | }
|
| | | else
|
| | | {
|
| | | HdlFileLogic.Current.DeleteFile(DirNameResourse.OpenGbsFile);
|
| | | }
|
| | | HDLUtils.RestartApp();
|
| | | });
|
| | | btnGbsSwitch.IsSelected = false;
|
| | | UserCenterResourse.HideOption.WriteGpsPoint = 0;
|
| | | return;
|
| | | }
|
| | | this.ShowDialogInputForm("????", string.Empty, "请输入识别码", (contr, value) =>
|
| | | {
|
| | | if (value == "542397")
|
| | | {
|
| | | UserCenterResourse.HideOption.WriteGpsPoint = 1;
|
| | | btnGbsSwitch.IsSelected = true;
|
| | | }
|
| | | contr.CloseDialog();
|
| | | });
|
| | | };
|
| | | #endif
|
| | |
|
| | | row1 = new FrameRowControl(listView.rowSpace / 2);
|
| | | listView.AddChidren(row1);
|