Await cancell
This commit is contained in:
parent
3cd394ec10
commit
c51489ac74
@ -209,10 +209,10 @@ namespace LibationWinForms.ProcessQueue
|
|||||||
toolStripProgressBar1.Value = Queue.Completed.Count;
|
toolStripProgressBar1.Value = Queue.Completed.Count;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cancelAllBtn_Click(object sender, EventArgs e)
|
private async void cancelAllBtn_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Queue.ClearQueue();
|
Queue.ClearQueue();
|
||||||
Queue.Current?.CancelAsync();
|
await Queue.Current?.CancelAsync();
|
||||||
virtualFlowControl2.VirtualControlCount = Queue.Count;
|
virtualFlowControl2.VirtualControlCount = Queue.Count;
|
||||||
UpdateAllControls();
|
UpdateAllControls();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user