| | |
| | | }
|
| | |
|
| | | //二次安全验证将用于下列操作
|
| | | var btnTitle = new NormalViewControl(800, 49, true);
|
| | | var btnTitle = new NormalViewControl(800, 50, true);
|
| | | btnTitle.X = ControlCommonResourse.XXLeft;
|
| | | btnTitle.Y = frameTop.Bottom + Application.GetRealHeight(35);
|
| | | btnTitle.Y = frameTop.Bottom + Application.GetRealHeight(34);
|
| | | btnTitle.TextSize = 12;
|
| | | btnTitle.TextColor = UserCenterColor.Current.TextGrayColor3;
|
| | | btnTitle.TextID = R.MyInternationalizationString.uSecondarySecurityWillBeUsedForTheFollowingOperations;
|
| | | bodyFrameLayout.AddChidren(btnTitle);
|
| | | btnTitle.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | //隐匿功能点击
|
| | | this.HideOptionClick(btnTitle);
|
| | | };
|
| | |
|
| | | var frameButtom = new FrameListControl(12);
|
| | | frameButtom.Y = btnTitle.Bottom + Application.GetRealHeight(23);
|
| | |
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 隐匿功能___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 点击合计
|
| | | /// </summary>
|
| | | private int clickCount = 0;
|
| | | /// <summary>
|
| | | /// 点击的那瞬间的时间
|
| | | /// </summary>
|
| | | private DateTime clickTime;
|
| | | /// <summary>
|
| | | /// 隐匿功能
|
| | | /// </summary>
|
| | | private void HideOptionClick(NormalViewControl btnTitle)
|
| | | {
|
| | | if (clickCount == 0)
|
| | | {
|
| | | clickTime = DateTime.Now;
|
| | | }
|
| | | clickCount++;
|
| | | if (clickCount >= 10)
|
| | | {
|
| | | if ((DateTime.Now - clickTime).TotalSeconds > 3)
|
| | | {
|
| | | clickCount = 0;
|
| | | return;
|
| | | }
|
| | | btnTitle.CanClick = false;
|
| | | HdlThreadLogic.Current.RunThread(async () =>
|
| | | {
|
| | | this.ShowProgressBar();
|
| | | var result = await HdlBackupLogic.Current.LoadHideOption();
|
| | | this.CloseProgressBar();
|
| | | if (result == true)
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Tip, "刷新隐匿配置成功");
|
| | | }
|
| | | else
|
| | | {
|
| | | this.ShowMassage(ShowMsgType.Tip, "刷新隐匿配置失败");
|
| | | }
|
| | | });
|
| | | }
|
| | | }
|
| | |
|
| | | #endregion
|
| | | }
|
| | | }
|