From 9aa32bd5ed75d54b2141b6c91f163d43216a3643 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 06 十二月 2019 13:14:02 +0800 Subject: [PATCH] 20191206 --- HDL_ON/UI/UI0-Public/PublicMothed.cs | 31 +++++++++++++++++++++++++++---- 1 files changed, 27 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI0-Public/PublicMothed.cs b/HDL_ON/UI/UI0-Public/PublicMothed.cs index e58be4b..06ffaf4 100644 --- a/HDL_ON/UI/UI0-Public/PublicMothed.cs +++ b/HDL_ON/UI/UI0-Public/PublicMothed.cs @@ -1,7 +1,8 @@ 锘縰sing System; -using System.Text.RegularExpressions; -using HDL_ON.DAL.Server; -namespace HDL_ON.UI +using System.Threading; +using Shared; + +namespace HDL_ON { public class PublicMothed { @@ -9,8 +10,30 @@ { } - //Regex reg = new Regex("^\\d+$"); + } + + public class WaitPageMothed + { + /// <summary> + /// 鍔犺浇绛夊緟鐣岄潰 + /// </summary> + public void LoadPage_WaitPage(Thread thread, FrameLayout bodyView,Loading waitPage) + { + bodyView.AddChidren(waitPage); + waitPage.Start(Language.StringByID(InternationalizationString.PleaseWait)); + var showedTime = DateTime.Now; + //濡傛灉绛夊緟浜嬩欢杩囬暱锛屽彲浠ュ厑璁哥敤鎴峰彇娑堝綋鍓嶆搷浣� + waitPage.MouseUpEventHandler += (sender, e) => + { + if (showedTime.AddSeconds(30) > DateTime.Now) + { + thread.Abort(); + waitPage.RemoveFromParent(); + } + }; + thread.Start(); + } } } -- Gitblit v1.8.0