Remove ValidationFail books from queue display. Nothing to see there.
This commit is contained in:
parent
d18d8c0ba4
commit
5b05c018d5
2 changed files with 21 additions and 0 deletions
|
|
@ -94,6 +94,23 @@ namespace LibationWinForms.ProcessQueue
|
|||
}
|
||||
}
|
||||
|
||||
public void ClearCurrent()
|
||||
{
|
||||
lock(lockObject)
|
||||
Current = null;
|
||||
}
|
||||
|
||||
public bool RemoveCompleted(T item)
|
||||
{
|
||||
lock (lockObject)
|
||||
{
|
||||
bool removed = _completed.Remove(item);
|
||||
if (removed)
|
||||
CompletedCountChanged?.Invoke(this, _completed.Count);
|
||||
return removed;
|
||||
}
|
||||
}
|
||||
|
||||
public void ClearQueue()
|
||||
{
|
||||
lock (lockObject)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue