private void BackgroundWorker_ProgressChanged(object sender, ProgressChangedEventArgs e) { if (pendingHandler != null) { pendingHandler.UpdateMessage(string.Format("正在分析日志文件...({0}%)", e.ProgressPercentage)); } }
public async void PendingBox(string cap) { IPendingHandler handler = null; switch (cap) { case "normal": handler = PendingBoxX.Show("Processing .....", "Normal", true, Application.Current.MainWindow); break; } if (handler != null) { handler.Cancelling += Handler_Cancelling; await Task.Delay(2000); handler.UpdateMessage("Almost complete ..."); await Task.Delay(4000); handler.Close(); } }