mirror of
https://github.com/rmcrackan/Libation.git
synced 2026-03-30 04:45:05 -04:00
Add thread safety
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user