| | |
| | | /// </summary> |
| | | Button btnStartupBg; |
| | | |
| | | |
| | | /// <summary> |
| | | /// 设置安防选项提示 |
| | | /// </summary> |
| | | Button btnSecuritySelectionTip; |
| | | /// <summary> |
| | | /// 设置安防选项选中图标 |
| | | /// </summary> |
| | | Button btnSecuritySelectionIcon; |
| | | /// <summary> |
| | | /// 设置安防选项背景 |
| | | /// </summary> |
| | | Button btnSecurityBg; |
| | | #region F3阶段 |
| | | ///// <summary> |
| | | ///// 设置安防选项提示 |
| | | ///// </summary> |
| | | //Button btnSecuritySelectionTip; |
| | | ///// <summary> |
| | | ///// 设置安防选项选中图标 |
| | | ///// </summary> |
| | | //Button btnSecuritySelectionIcon; |
| | | ///// <summary> |
| | | ///// 设置安防选项背景 |
| | | ///// </summary> |
| | | //Button btnSecurityBg; |
| | | |
| | | |
| | | /// <summary> |
| | |
| | | /// 设置门锁选项背景 |
| | | /// </summary> |
| | | Button btnDoorlockBg; |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 密码使用选择的详细内容提示 |
| | |
| | | bodyView.BackgroundColor = CSS_Color.BackgroundColor; |
| | | //如果用户配置了需要解锁的界面但是没有设置密码,则在返回时清空需要解锁的界面 |
| | | Action action = () => { |
| | | if(MainPage.LoginUser.appUnlockPage.Count > 0&& MainPage.LoginUser.appUnlockPasswrod == "") |
| | | if(UserInfo.Current.appUnlockPage.Count > 0&& UserInfo.Current.appUnlockPasswrod == "") |
| | | { |
| | | MainPage.LoginUser.appUnlockPage = new System.Collections.Generic.List<string>(); |
| | | MainPage.LoginUser.SaveUserInfo(); |
| | | UserInfo.Current.appUnlockPage = new System.Collections.Generic.List<string>(); |
| | | UserInfo.Current.SaveUserInfo(); |
| | | } |
| | | }; |
| | | new TopViewDiv(bodyView, Language.StringByID(StringId.InterpretationSettings)).LoadTopView(action); |
| | |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | TextID = StringId.MultipleChoicesOfPagesYouNeedToProtect, |
| | | IsMoreLines = true, |
| | | }; |
| | | topContentView.AddChidren(btnTip2); |
| | | if(Language.CurrentLanguage == "Engligh") |
| | | { |
| | | btnTip2.Height = Application.GetRealHeight(30); |
| | | } |
| | | |
| | | |
| | | optionView = new HorizontalScrolViewLayout() |
| | |
| | | TextID = StringId.UnprotectedTipMsg, |
| | | }; |
| | | topContentView.AddChidren(btnTipMsg); |
| | | if (Language.CurrentLanguage == "Engligh") |
| | | { |
| | | btnTip2.Height = Application.GetRealHeight(40); |
| | | topContentView.Height = Application.GetRealHeight(360); |
| | | } |
| | | |
| | | LoadEventList(); |
| | | |
| | |
| | | startupDiv.AddChidren(btnStartupSelectionTip); |
| | | #endregion |
| | | |
| | | |
| | | #region F3阶段 |
| | | #region Security |
| | | optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); |
| | | //optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); |
| | | |
| | | FrameLayout securityDiv = new FrameLayout() |
| | | { |
| | | Width = Application.GetRealWidth(94), |
| | | }; |
| | | optionView.AddChidren(securityDiv); |
| | | //FrameLayout securityDiv = new FrameLayout() |
| | | //{ |
| | | // Width = Application.GetRealWidth(94), |
| | | //}; |
| | | //optionView.AddChidren(securityDiv); |
| | | |
| | | btnSecurityBg = new Button() |
| | | { |
| | | Height = Application.GetRealWidth(174), |
| | | UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/3.png", |
| | | SelectedImagePath = "PersonalCenter/AppUnlockSetting/3On.png" |
| | | }; |
| | | securityDiv.AddChidren(btnSecurityBg); |
| | | //btnSecurityBg = new Button() |
| | | //{ |
| | | // Height = Application.GetRealWidth(174), |
| | | // UnSelectedImagePath = "PersonalCenter/AppUnlockSetting/3.png", |
| | | // SelectedImagePath = "PersonalCenter/AppUnlockSetting/3On.png" |
| | | //}; |
| | | //securityDiv.AddChidren(btnSecurityBg); |
| | | |
| | | btnSecuritySelectionIcon = new Button() |
| | | { |
| | | X = Application.GetRealWidth(5), |
| | | Y = Application.GetRealWidth(174), |
| | | Width = Application.GetRealWidth(30), |
| | | Height = Application.GetRealWidth(30), |
| | | UnSelectedImagePath = "Public/ChooseIcon.png", |
| | | SelectedImagePath = "Public/ChooseOnIcon.png", |
| | | }; |
| | | securityDiv.AddChidren(btnSecuritySelectionIcon); |
| | | //btnSecuritySelectionIcon = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(5), |
| | | // Y = Application.GetRealWidth(174), |
| | | // Width = Application.GetRealWidth(30), |
| | | // Height = Application.GetRealWidth(30), |
| | | // UnSelectedImagePath = "Public/ChooseIcon.png", |
| | | // SelectedImagePath = "Public/ChooseOnIcon.png", |
| | | //}; |
| | | //securityDiv.AddChidren(btnSecuritySelectionIcon); |
| | | |
| | | btnSecuritySelectionTip = new Button() |
| | | { |
| | | X = Application.GetRealWidth(30), |
| | | Y = Application.GetRealWidth(174), |
| | | Width = Application.GetRealWidth(74), |
| | | Height = Application.GetRealWidth(30), |
| | | TextID = StringId.DefenseAndUndefense, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextColor = CSS_Color.FirstLevelTitleColor, |
| | | SelectedTextColor = CSS_Color.MainColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel |
| | | }; |
| | | securityDiv.AddChidren(btnSecuritySelectionTip); |
| | | //btnSecuritySelectionTip = new Button() |
| | | //{ |
| | | // X = Application.GetRealWidth(30), |
| | | // Y = Application.GetRealWidth(174), |
| | | // Width = Application.GetRealWidth(74), |
| | | // Height = Application.GetRealWidth(30), |
| | | // TextID = StringId.DefenseAndUndefense, |
| | | // TextAlignment = TextAlignment.CenterLeft, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // SelectedTextColor = CSS_Color.MainColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel |
| | | //}; |
| | | //securityDiv.AddChidren(btnSecuritySelectionTip); |
| | | #endregion |
| | | |
| | | |
| | |
| | | }; |
| | | doorlockDiv.AddChidren(btnDoorlockSelectionTip); |
| | | #endregion |
| | | #endregion |
| | | |
| | | optionView.AddChidren(new Button() { Width = Application.GetRealWidth(16) }); |
| | | } |
| | |
| | | Height = Application.GetRealHeight(260), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | ScrollEnabled = false, |
| | | Visible = MainPage.LoginUser.appUnlockPage.Count > 0 |
| | | Visible = UserInfo.Current.appUnlockPage.Count > 0 |
| | | }; |
| | | bodyView.AddChidren(unlockOptionView); |
| | | |
| | |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | if ( !MainPage.LoginUser.appUnlockType.Contains("2")) |
| | | if ( !UserInfo.Current.appUnlockType.Contains("2")) |
| | | { |
| | | unlockOptionView.AddChidren(passwordUnlockDiv); |
| | | } |
| | |
| | | Height = Application.GetMinRealAverage(38), |
| | | UnSelectedImagePath = "Public/Switch_2.png", |
| | | SelectedImagePath = "Public/SwitchOn_2.png", |
| | | IsSelected = MainPage.LoginUser.appUnlockType.Contains("1") |
| | | IsSelected = UserInfo.Current.appUnlockType.Contains("1") |
| | | }; |
| | | passwordUnlockDiv.AddChidren(btnPasswordUnlockkSwtichIcon); |
| | | |
| | |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | if (MainPage.LoginUser.appUnlockPasswrod != "" && MainPage.LoginUser.appUnlockType.Contains("1")) |
| | | if (UserInfo.Current.appUnlockPasswrod != "" && UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | | unlockOptionView.AddChidren(resetPasswordDiv); |
| | | } |
| | |
| | | }; |
| | | resetPasswordDiv.AddChidren(btnResetPasswordTitle); |
| | | |
| | | if (MainPage.LoginUser.appUnlockPasswrod != "" && MainPage.LoginUser.appUnlockType.Contains("1")) |
| | | if (UserInfo.Current.appUnlockPasswrod != "" && UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | | unlockOptionView.AddChidren(new Button() |
| | | { |
| | |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | if (!MainPage.LoginUser.appUnlockType.Contains("1")) |
| | | if (!UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | | unlockOptionView.AddChidren(gestureUnlockDiv); |
| | | } |
| | |
| | | Height = Application.GetMinRealAverage(38), |
| | | UnSelectedImagePath = "Public/Switch_2.png", |
| | | SelectedImagePath = "Public/SwitchOn_2.png", |
| | | IsSelected = MainPage.LoginUser.appUnlockType.Contains("2") |
| | | IsSelected = UserInfo.Current.appUnlockType.Contains("2") |
| | | }; |
| | | gestureUnlockDiv.AddChidren(btnGestureUnlockkSwtichIcon); |
| | | |
| | |
| | | }; |
| | | gestureUnlockDiv.AddChidren(btnGestureUnlockTitle); |
| | | |
| | | if (!MainPage.LoginUser.appUnlockType.Contains("1")) |
| | | if (!UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | | unlockOptionView.AddChidren(new Button() |
| | | { |
| | |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | if (MainPage.LoginUser.appUnlockPasswrod != "" && MainPage.LoginUser.appUnlockType.Contains("2")) |
| | | if (UserInfo.Current.appUnlockPasswrod != "" && UserInfo.Current.appUnlockType.Contains("2")) |
| | | { |
| | | unlockOptionView.AddChidren(resetGestureDiv); |
| | | } |
| | |
| | | }; |
| | | resetGestureDiv.AddChidren(btnResetGestureTitle); |
| | | |
| | | if (MainPage.LoginUser.appUnlockPasswrod != "" && MainPage.LoginUser.appUnlockType.Contains("2")) |
| | | if (UserInfo.Current.appUnlockPasswrod != "" && UserInfo.Current.appUnlockType.Contains("2")) |
| | | { |
| | | unlockOptionView.AddChidren(new Button() |
| | | { |
| | |
| | | { |
| | | Height = Application.GetRealHeight(51), |
| | | }; |
| | | if (sTouchID && MainPage.LoginUser.appUnlockPasswrod != ""&&!MainPage.LoginUser.appUnlockType.Contains("4")) |
| | | if (sTouchID && UserInfo.Current.appUnlockPasswrod != "" && !UserInfo.Current.appUnlockType.Contains("4")) |
| | | { |
| | | unlockOptionView.AddChidren(fingerprintUnlockDiv); |
| | | } |
| | |
| | | Height = Application.GetMinRealAverage(38), |
| | | UnSelectedImagePath = "Public/Switch_2.png", |
| | | SelectedImagePath = "Public/SwitchOn_2.png", |
| | | IsSelected = MainPage.LoginUser.appUnlockType.Contains("3") |
| | | IsSelected = UserInfo.Current.appUnlockType.Contains("3") |
| | | }; |
| | | fingerprintUnlockDiv.AddChidren(btnFingerprintUnlockSwtichIcon); |
| | | |
| | |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | }; |
| | | if (sFaceID && MainPage.LoginUser.appUnlockPasswrod != "" && !MainPage.LoginUser.appUnlockType.Contains("4")) |
| | | if (sFaceID && UserInfo.Current.appUnlockPasswrod != "" && !UserInfo.Current.appUnlockType.Contains("3")) |
| | | { |
| | | unlockOptionView.AddChidren(faceIdUnlockDiv); |
| | | } |
| | |
| | | Height = Application.GetMinRealAverage(38), |
| | | UnSelectedImagePath = "Public/Switch_2.png", |
| | | SelectedImagePath = "Public/SwitchOn_2.png", |
| | | IsSelected = MainPage.LoginUser.appUnlockType.Contains("4") |
| | | IsSelected = UserInfo.Current.appUnlockType.Contains("4") |
| | | }; |
| | | faceIdUnlockDiv.AddChidren(btnFaceIdUnlockSwtichIcon); |
| | | |