| | |
| | | btnDoorlockBg.IsSelected = btnDoorlockSelectionIcon.IsSelected = btnDoorlockSelectionTip.IsSelected = false; |
| | | |
| | | btnTipMsg.TextID = StringId.UnprotectedTipMsg; |
| | | btnTipMsg.Visible = true; |
| | | |
| | | MainPage.LoginUser.appUnlockPage = new System.Collections.Generic.List<string>(); |
| | | MainPage.LoginUser.appUnlockType = new System.Collections.Generic.List<string>(); |
| | |
| | | btnUnprotectedSelectionIcon.MouseUpEventHandler = eventHandler1; |
| | | btnUnprotectedSelectionTip.MouseUpEventHandler = eventHandler1; |
| | | |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler2 = (sender, e) => |
| | | { |
| | | bool result = !btnStartupBg.IsSelected; |
| | | btnStartupBg.IsSelected = btnStartupSelectionIcon.IsSelected = btnStartupSelectionTip.IsSelected = result; |
| | | |
| | | btnTipMsg.Text = Language.StringByID(StringId.AtStartupTipMsg); |
| | | btnTipMsg.Visible = true; |
| | | if (result) |
| | | { |
| | | btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = false; |
| | |
| | | MainPage.LoginUser.SaveUserInfo(); |
| | | } |
| | | unlockOptionView.Visible = true; |
| | | |
| | | } |
| | | else |
| | | { |
| | |
| | | btnStartupSelectionIcon.MouseUpEventHandler = eventHandler2; |
| | | btnStartupSelectionTip.MouseUpEventHandler = eventHandler2; |
| | | |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler3 = (sender, e) => |
| | | { |
| | | bool result = !btnSecurityBg.IsSelected; |
| | | btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = result; |
| | | |
| | | btnTipMsg.Text = Language.StringByID(StringId.DefenseAndUndefenseTipMsg); |
| | | btnTipMsg.Visible = true; |
| | | |
| | | if (result) |
| | | { |
| | |
| | | btnSecuritySelectionIcon.MouseUpEventHandler = eventHandler3; |
| | | btnSecuritySelectionTip.MouseUpEventHandler = eventHandler3; |
| | | |
| | | |
| | | EventHandler<MouseEventArgs> eventHandler4 = (sender, e) => |
| | | { |
| | | bool result = !btnDoorlockBg.IsSelected; |
| | | btnDoorlockBg.IsSelected = btnDoorlockSelectionIcon.IsSelected = btnDoorlockSelectionTip.IsSelected = result; |
| | | |
| | | btnTipMsg.Text = Language.StringByID(StringId.RemoteUnlockingTipMsg); |
| | | btnTipMsg.Visible = true; |
| | | if (result) |
| | | { |
| | | btnUnprotectedBg.IsSelected = btnUnprotectedSelectionIcon.IsSelected = btnUnprotectedSelectionTip.IsSelected = false; |
| | |
| | | btnDoorlockBg.MouseUpEventHandler = eventHandler4; |
| | | btnDoorlockSelectionIcon.MouseUpEventHandler = eventHandler4; |
| | | btnDoorlockSelectionTip.MouseUpEventHandler = eventHandler4; |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | if (MainPage.LoginUser.appUnlockPage.Contains("1")) |
| | | { |
| | | btnStartupBg.IsSelected = btnStartupSelectionIcon.IsSelected = btnStartupSelectionTip.IsSelected = true; |
| | | btnTipMsg.Text = Language.StringByID(StringId.AtStartupTipMsg); |
| | | } |
| | | if (MainPage.LoginUser.appUnlockPage.Contains("2")) |
| | | { |
| | | btnSecurityBg.IsSelected = btnSecuritySelectionIcon.IsSelected = btnSecuritySelectionTip.IsSelected = true; |
| | | btnTipMsg.Text = Language.StringByID(StringId.DefenseAndUndefenseTipMsg); |
| | | } |
| | | if (MainPage.LoginUser.appUnlockPage.Contains("3")) |
| | | { |
| | | btnDoorlockBg.IsSelected = btnDoorlockSelectionIcon.IsSelected = btnDoorlockSelectionTip.IsSelected = true; |
| | | btnTipMsg.Text = Language.StringByID(StringId.RemoteUnlockingTipMsg); |
| | | } |
| | | } |
| | | } |
| | |
| | | /// </summary> |
| | | void LoadEvet_SkipEventList() |
| | | { |
| | | |
| | | |
| | | btnPasswordUnlockTitle.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | var page = new AppUnlockPasswordPage(MainPage.LoginUser.appUnlockPasswrod, refreshAction); |
| | |
| | | { |
| | | var page = new AppUnlockGesturePage(MainPage.LoginUser.appUnlockPasswrod, refreshAction); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage("2"); |
| | | page.LoadPage("3"); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | }; |
| | | |
| | |
| | | { |
| | | btnFingerprintUnlockSwtichIcon.MouseUpEventHandler = (sender, e1) => |
| | | { |
| | | Action fingerAction = () => { |
| | | TouchIDUtils.Instance.showTouchIDWithDescribe(null, Language.StringByID(StringId.PleaseVerifyTheFingerprint)); |
| | | }; |
| | | new AppUnlockPage().LoadGesturePage("5",fingerAction); |
| | | |
| | | TouchIDUtils.Instance.showTouchIDWithDescribe(null, Language.StringByID(StringId.PleaseVerifyTheFingerprint)); |
| | | |
| | | TouchIDUtils.Instance.OnHDLTouchIDStateBackEvent = (sender1, e) => |
| | |
| | | MainPage.LoginUser.SaveUserInfo(); |
| | | } |
| | | } |
| | | //MainPage.BasePageView.RemoveAt(MainPage.BasePageView.ChildrenCount - 1); |
| | | MainPage.BasePageView.GetChildren(MainPage.BasePageView.ChildrenCount - 1).RemoveFromParent(); |
| | | } |
| | | else// if (e == TouchIDUtils.TouchIDState.InputPassword || e == TouchIDUtils.TouchIDState.TouchIDLockout) |
| | | { |
| | |
| | | { |
| | | var page = new AppUnlockGesturePage(MainPage.LoginUser.appUnlockPasswrod, refreshAction); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadPage("6"); |
| | | page.LoadPage("5"); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | } |
| | | } |