CTDB EAC Plugin: timeouts

This commit is contained in:
chudov
2011-05-28 15:03:49 +00:00
parent 9394fab3f3
commit 1b5336164c
7 changed files with 141 additions and 83 deletions

View File

@@ -69,5 +69,15 @@ namespace CUETools.CTDB.EACPlugin
this.progressBar1.Style = e.ProgressPercentage != 0 ? ProgressBarStyle.Continuous : ProgressBarStyle.Marquee;
this.progressBar1.Value = Math.Max(0, Math.Min(100, e.ProgressPercentage));
}
private void FormSubmitParity_FormClosing(object sender, FormClosingEventArgs e)
{
if (this.backgroundWorker1.IsBusy)
{
e.Cancel = true;
this.progressBar1.Style = ProgressBarStyle.Marquee;
this.ctdb.CancelRequest();
}
}
}
}