Add thread safety
This commit is contained in:
parent
2f082a9656
commit
08aebf8ecf
@ -39,8 +39,19 @@ namespace LibationWinForms.ProcessQueue
|
||||
|
||||
public void RefreshDisplay()
|
||||
{
|
||||
AdjustScrollBar();
|
||||
DoVirtualScroll();
|
||||
if (InvokeRequired)
|
||||
{
|
||||
Invoke((MethodInvoker)delegate
|
||||
{
|
||||
AdjustScrollBar();
|
||||
DoVirtualScroll();
|
||||
});
|
||||
}
|
||||
else
|
||||
{
|
||||
AdjustScrollBar();
|
||||
DoVirtualScroll();
|
||||
}
|
||||
}
|
||||
|
||||
#region Dynamic Properties
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user