| | |
| | | listView.AddChidren(row1);
|
| | | row1.AddLeftCaption("清除缓存文件", 500);
|
| | | row1.AddRightArrow();
|
| | | row1.AddBottomLine();
|
| | | row1.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Confirm, "是否清除缓存文件", () =>
|
| | |
| | | });
|
| | | };
|
| | |
|
| | | #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, "注意:开启或者关闭此功能会重启App", () =>
|
| | | {
|
| | | 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);
|