mirror of
https://github.com/farcasclaudiu/SmartThreadPool.git
synced 2026-06-22 09:01:19 +03:00
Added and fixed WorkItemsGroupDemoMono
Also fixed Performance Counter which doesn't work on Mono
This commit is contained in:
@@ -200,8 +200,17 @@ namespace UsageControl
|
||||
Bitmap bitmap = new Bitmap(Width, Height);
|
||||
Graphics g = Graphics.FromImage(bitmap);
|
||||
|
||||
if (!Enabled)
|
||||
{
|
||||
g.FillPath(Brushes.LightGray, _pathBorder);
|
||||
g.DrawPath(Pens.Black, _pathBorder);
|
||||
e.Graphics.DrawImage(bitmap, 0, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
g.FillPath(Brushes.White, _pathBorder);
|
||||
|
||||
|
||||
int counter = Math.Min(_maxItemsVisible, _queuedItems.Count);
|
||||
|
||||
int i = 0;
|
||||
|
||||
Reference in New Issue
Block a user