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