From 9f326f4000847e6167d8166fa2f6a66f53cb3734 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期四, 17 十二月 2020 09:07:13 +0800
Subject: [PATCH] 新云端Ver1.3
---
ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs | 54 ++++++++++++++++++++++++++++--------------------------
1 files changed, 28 insertions(+), 26 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs
index a82b06d..c51f1a8 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/SecondAuthenticationForm.cs
@@ -66,7 +66,7 @@
rowFinger.AddChidren(btnEffect, ChidrenBindMode.NotBind);
//寮�鍏虫寜閽�
btnFingerSwicth = rowFinger.AddMostRightSwitchIcon();
- btnFingerSwicth.IsSelected = UserCenterResourse.AccountOption.FingerprintAuthentication;
+ btnFingerSwicth.IsSelected = HdlUserCenterResourse.AccountOption.FingerprintAuthentication;
//搴曠嚎
rowFinger.AddBottomLine();
}
@@ -84,7 +84,7 @@
rowPsw.AddRightArrow();
//鍘昏缃�
var btnSettion1 = rowPsw.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uGotoSettion), 400);
- if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == false)
+ if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == false)
{
//鍘讳慨鏀�
btnSettion1.TextID = R.MyInternationalizationString.uGotoEditor;
@@ -100,7 +100,7 @@
rowGesture.AddRightArrow();
//鍘昏缃�
var btnSettion2 = rowGesture.AddMostRightView(Language.StringByID(R.MyInternationalizationString.uGotoSettion), 400);
- if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == false)
+ if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.GestureAuthentication) == false)
{
//鍘讳慨鏀�
btnSettion2.TextID = R.MyInternationalizationString.uGotoEditor;
@@ -108,7 +108,7 @@
//浜屾瀹夊叏楠岃瘉灏嗙敤浜庝笅鍒楁搷浣�
var btnTitle = new NormalViewControl(800, 50, true);
- btnTitle.X = ControlCommonResourse.XXLeft;
+ btnTitle.X = HdlControlResourse.XXLeft;
btnTitle.Y = frameTop.Bottom + Application.GetRealHeight(34);
btnTitle.TextSize = 12;
btnTitle.TextColor = UserCenterColor.Current.TextGrayColor3;
@@ -155,7 +155,7 @@
var btnLockSwicth = rowLock.AddMostRightSwitchIcon();
//搴曠嚎
rowLock.AddBottomLine();
- btnLockSwicth.IsSelected = UserCenterResourse.AccountOption.DoorUnLockByRemote;
+ btnLockSwicth.IsSelected = HdlUserCenterResourse.AccountOption.DoorUnLockByRemote;
var rowSafety = new FrameRowControl(frameButtom.rowSpace / 2);
rowSafety.UseClickStatu = false;
@@ -209,7 +209,7 @@
rowPsw.ButtonClickEvent += (sender, e) =>
{
//濡傛灉娌℃湁瀵嗙爜楠岃瘉
- if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == true)
+ if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == true)
{
//濡傛灉璁剧疆鏈夊叾浠栭獙璇佹柟寮�,鍒欓渶瑕侀獙璇�,鍚﹀垯鐩存帴璺宠繃楠岃瘉
HdlCheckLogic.Current.CheckSecondarySecurity(
@@ -226,7 +226,7 @@
rowGesture.ButtonClickEvent += (sender, e) =>
{
//濡傛灉娌℃湁鎵嬪娍楠岃瘉
- if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == true)
+ if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.GestureAuthentication) == true)
{
//濡傛灉璁剧疆鏈夊叾浠栭獙璇佹柟寮�,鍒欓渶瑕侀獙璇�,鍚﹀垯鐩存帴璺宠繃楠岃瘉
HdlCheckLogic.Current.CheckSecondarySecurity(
@@ -276,22 +276,22 @@
return;
}
- UserCenterResourse.AccountOption.FingerprintAuthentication = !btnFingerSwicth.IsSelected;
- UserCenterResourse.AccountOption.Save();
+ HdlUserCenterResourse.AccountOption.FingerprintAuthentication = !btnFingerSwicth.IsSelected;
+ HdlUserCenterResourse.AccountOption.Save();
//閲嶆柊鍒锋柊鐣岄潰
this.InitMiddleFrame();
}
else
{
- if (string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == true
- && string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == true
+ if (string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.GestureAuthentication) == true
+ && string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == true
&& btnLockSwicth.IsSelected == true)
{
//鎵�鏈夐獙璇侀兘鍙栨秷浜�,鍒欏彇娑堣繙绋嬪紑閿佸姛鑳�
- UserCenterResourse.AccountOption.DoorUnLockByRemote = false;
+ HdlUserCenterResourse.AccountOption.DoorUnLockByRemote = false;
}
- UserCenterResourse.AccountOption.FingerprintAuthentication = !btnFingerSwicth.IsSelected;
- UserCenterResourse.AccountOption.Save();
+ HdlUserCenterResourse.AccountOption.FingerprintAuthentication = !btnFingerSwicth.IsSelected;
+ HdlUserCenterResourse.AccountOption.Save();
//閲嶆柊鍒锋柊鐣岄潰
this.InitMiddleFrame();
}
@@ -308,11 +308,11 @@
private void DoRemoteUnLocks(MostRightIconControl btnLockSwicth)
{
if (btnLockSwicth.IsSelected == false
- && string.IsNullOrEmpty(UserCenterResourse.AccountOption.GestureAuthentication) == true
- && string.IsNullOrEmpty(UserCenterResourse.AccountOption.PswAuthentication) == true)
+ && string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.GestureAuthentication) == true
+ && string.IsNullOrEmpty(HdlUserCenterResourse.AccountOption.PswAuthentication) == true)
{
TouchIDUtils.TouchIDSupperType type = TouchIDUtils.getTouchIDSupperType();
- if (type == TouchIDUtils.TouchIDSupperType.None || UserCenterResourse.AccountOption.FingerprintAuthentication == false)
+ if (type == TouchIDUtils.TouchIDSupperType.None || HdlUserCenterResourse.AccountOption.FingerprintAuthentication == false)
{
//杩滅▼寮�閿佸紑鍚け璐ワ紝璇峰厛璁剧疆{0}浜屾瀹夊叏楠岃瘉鏂瑰紡
string msg = Language.StringByID(R.MyInternationalizationString.uUseUnLockByRemoteFailMsg);
@@ -324,8 +324,8 @@
return;
}
}
- UserCenterResourse.AccountOption.DoorUnLockByRemote = !btnLockSwicth.IsSelected;
- UserCenterResourse.AccountOption.Save();
+ HdlUserCenterResourse.AccountOption.DoorUnLockByRemote = !btnLockSwicth.IsSelected;
+ HdlUserCenterResourse.AccountOption.Save();
//閲嶆柊鍒锋柊鐣岄潰
this.InitMiddleFrame();
}
@@ -375,10 +375,10 @@
return;
}
btnTitle.CanClick = false;
- HdlThreadLogic.Current.RunThread(async () =>
+ HdlThreadLogic.Current.RunThread(() =>
{
this.ShowProgressBar();
- var result = await HdlBackupLogic.Current.LoadHideOption();
+ var result = HdlBackupLogic.Current.LoadHideOption();
this.CloseProgressBar();
if (result == true)
{
@@ -425,26 +425,28 @@
if (textValue == check1 || textValue == check2 || textValue == check3)
{
//寮�鍚殣钘忚彍鍗�
- UserCenterResourse.HideOption.CenterHideMenu = 1;
+ HdlUserCenterResourse.HideOption.CenterHideMenu = 1;
}
}
- if (textValue == "1")
+ if (textValue == "84651666")
{
+ //鏄剧ず璁惧鍘嗗彶鐗堟湰
+ HdlUserCenterResourse.HideOption.DeviceHistory = 1;
}
if (textValue == "12349")
{
//寮哄埗璺宠浆鐪熷疄璁惧鐣岄潰
- UserCenterResourse.HideOption.GotoRealDeviceForm = 1;
+ HdlUserCenterResourse.HideOption.GotoRealDeviceForm = 1;
}
if (textValue == "12348")
{
//寮哄埗璺宠浆缃戝叧鐣岄潰
- UserCenterResourse.HideOption.GotoGatewayProductInfoForm = 1;
+ HdlUserCenterResourse.HideOption.GotoGatewayProductInfoForm = 1;
}
if (textValue == "abcdef1")
{
//寮哄埗鍙樻洿甯稿紑妯″紡鐨勬椂闂翠负鍒嗛挓
- UserCenterResourse.HideOption.DoorLockNomallyOpenTimeMode = 1;
+ HdlUserCenterResourse.HideOption.DoorLockNomallyOpenTimeMode = 1;
}
this.ShowMassage(ShowMsgType.Tip, "Ok!");
--
Gitblit v1.8.0