| | |
| | |
|
| | | //该功能只对出入防区有效
|
| | | var btnTitle = new NormalViewControl(864, 50, true);
|
| | | btnTitle.X = ControlCommonResourse.XXLeft;
|
| | | btnTitle.X = HdlControlResourse.XXLeft;
|
| | | btnTitle.Y = Application.GetRealHeight(38);
|
| | | btnTitle.TextSize = 12;
|
| | | btnTitle.TextColor = UserCenterColor.Current.TextGrayColor2;
|
| | |
| | | //关闭进度条
|
| | | this.CloseProgressBar();
|
| | |
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | //初始化【进入延时】行
|
| | | this.InitInDelayedRow(listView);
|
| | |
| | | row.AddBottomLine();
|
| | | //时间
|
| | | string second = Language.StringByID(R.MyInternationalizationString.Second);
|
| | | this.inDelayTimeControl = row.AddMostRightView(this.timeResponseData.EntranceDelayTime + " " + second, 200);
|
| | | this.inDelayTimeControl = row.AddMostRightView(this.GetTimeText(this.timeResponseData.EntranceDelayTime), 200);
|
| | | this.inDelayTimeControl.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | |
|
| | | row.ButtonClickEvent += (sender, e) =>
|
| | |
| | | row.AddRightArrow();
|
| | | //时间
|
| | | string second = Language.StringByID(R.MyInternationalizationString.Second);
|
| | | this.outDelayTimeControl = row.AddMostRightView(this.timeResponseData.GoOutDelayTime + " " + second, 200);
|
| | | this.outDelayTimeControl = row.AddMostRightView(this.GetTimeText(this.timeResponseData.GoOutDelayTime), 200);
|
| | | this.outDelayTimeControl.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | |
|
| | | row.ButtonClickEvent += (sender, e) =>
|
| | |
| | | //修改缓存
|
| | | this.timeResponseData.EntranceDelayTime = inDelayTime;
|
| | | this.timeResponseData.GoOutDelayTime = OutDelayTime;
|
| | | Application.RunOnMainThread(() =>
|
| | | HdlThreadLogic.Current.RunMain(() =>
|
| | | {
|
| | | string second = Language.StringByID(R.MyInternationalizationString.Second);
|
| | | if (this.inDelayTimeControl != null)
|
| | | {
|
| | | this.inDelayTimeControl.Text = inDelayTime + " " + second;
|
| | | //显示时间翻译文本
|
| | | this.inDelayTimeControl.Text = this.GetTimeText(inDelayTime);
|
| | | }
|
| | | if (this.outDelayTimeControl != null)
|
| | | {
|
| | | this.outDelayTimeControl.Text = OutDelayTime + " " + second;
|
| | | //显示时间翻译文本
|
| | | this.outDelayTimeControl.Text = this.GetTimeText(OutDelayTime);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 一般方法___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 获取时间的翻译文本
|
| | | /// </summary>
|
| | | /// <param name="timeSecond">秒</param>
|
| | | /// <returns></returns>
|
| | | private string GetTimeText(int timeSecond)
|
| | | {
|
| | | string textValue = string.Empty;
|
| | | //分
|
| | | int checkValue = timeSecond / 60;
|
| | | if (checkValue > 0)
|
| | | {
|
| | | string minu = Language.StringByID(R.MyInternationalizationString.uMinute);
|
| | | textValue = checkValue + minu;
|
| | | }
|
| | | //秒
|
| | | checkValue = timeSecond % 60;
|
| | | if (checkValue > 0)
|
| | | {
|
| | | string second = Language.StringByID(R.MyInternationalizationString.uSecond);
|
| | | textValue += checkValue + second;
|
| | | }
|
| | | return textValue;
|
| | | }
|
| | |
|
| | | #endregion
|
| | | }
|
| | | }
|