void _mdoc_LongOperation(object sender, LongOperationEventArgs e)
{
_ProgressForm.SetProgress(string.Format("{0}...", e.Complete), (float)e.Complete);
if (_ProgressForm.Cancelled && _mdoc.BusyState == BusyStateEnum.Generating)
{
_mdoc.Cancel = true;
this.Close();
}
}
如上代碼,我要退出,但是它還是在不斷循環中,到文件產生完成,請問我中間要中斷要怎麼處理 |
|