public void ShowWaitting() { AwaitControl awaitControl = AwaitControl.Create(); awaitControl.Closed += (l, k) => { this.IsActive = true; }; MessageService.ShowLayer(awaitControl); }
/// <summary> 开始超时任务 </summary> public void StartMonitor() { _monitor.StartMonitor(); _monitor.OnCheckCount = l => { if (AwaitControl.IsShowed) { return; } MessageService.ShowWithLayer(AwaitControl.Create()); }; }