public static bool WaitSometing(int _waitStep, int _waitCount, string strTitle) { waitStep = _waitStep; waitCount = _waitCount; wp = new WaitingProc(); wp.MaxProgress = waitCount; WaitingProcFunc wpf1 = new WaitingProcFunc(WaitSometingProc); wp.Execute(wpf1, strTitle, WaitingType.None, ""); if (bWaitTimeOut) { return(false); } return(true); }
public void ExcelExportProc() { if (Count > 65530) { MessageBox.Show("条目过多,无法导出"); return; } if (Count == 0) { MessageBox.Show("没有任何内容,无法导出"); return; } WaitingProcFunc wpf = new WaitingProcFunc(Proc); wp = new WFNetLib.WaitingProc(); string strTitle = "数据导出到Excel中"; wp.Execute(wpf, strTitle, WFNetLib.WaitingType.With_ConfirmCancel, "确定要取消么?"); }