From dc0309e64f02227d8e1468b7326c07955f804612 Mon Sep 17 00:00:00 2001
From: chenqiyang <1406175257@qq.com>
Date: 星期三, 22 六月 2022 11:22:18 +0800
Subject: [PATCH] 修改引用路径
---
ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs | 50 +++++++++++++++++++++++++++++---------------------
1 files changed, 29 insertions(+), 21 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
index 4db53f4..678df88 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionMainForm.cs
@@ -71,9 +71,9 @@
this.AddNormalRowControl("褰撳墠韬唤", 400, UserCenterResourse.UserInfo.AuthorityText, 400);
- this.AddTopButtomRowControl("浣忓畢ID", 400, Common.Config.Instance.Home.Id, 900);
+ //this.AddTopButtomRowControl("浣忓畢ID", 400, Common.Config.Instance.Home.Id, 900);
- this.AddTopButtomRowControl("璐﹀彿GUID", 400, string.IsNullOrEmpty(Common.Config.Instance.Guid) == true ? Common.Config.Instance.Home.MainUserDistributedMark : Common.Config.Instance.Guid, 900);
+ //this.AddTopButtomRowControl("璐﹀彿GUID", 400, string.IsNullOrEmpty(Common.Config.Instance.Guid) == true ? Common.Config.Instance.Home.MainUserDistributedMark : Common.Config.Instance.Guid, 900);
this.AddNormalRowControl("浣忓畢鍒嗕韩", 400, Common.Config.Instance.Home.IsOthreShare == true ? "鏄�" : "鍚�", 400);
@@ -269,34 +269,42 @@
};
}
-#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, "娉ㄦ剰:寮�鍚垨鑰呭叧闂鍔熻兘浼氶噸鍚疉pp", () =>
+ 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);
+ row1.AddLeftCaption("浣跨敤鏃х殑璁惧鑾峰彇鏂瑰紡", 600);
+ row1.AddBottomLine();
+ var btnSwitchDeviceMethord = row1.AddMostRightSwitchIcon();
+ btnSwitchDeviceMethord.IsSelected = UserCenterResourse.HideOption.UseOldSearchDeviceMethord == 1;
+ btnSwitchDeviceMethord.ButtonClickEvent += (sender, e) =>
+ {
+ btnSwitchDeviceMethord.IsSelected = !btnSwitchDeviceMethord.IsSelected;
+ UserCenterResourse.HideOption.UseOldSearchDeviceMethord = btnSwitchDeviceMethord.IsSelected == true ? 1 : 0;
+ };
row1 = new FrameRowControl(listView.rowSpace / 2);
listView.AddChidren(row1);
--
Gitblit v1.8.0