Added and fixed WorkItemsGroupDemoMono

Also fixed Performance Counter which doesn't work on Mono
This commit is contained in:
Ami Bar
2009-12-24 01:41:55 +02:00
parent 48de8aca66
commit d3ebec6a1b
9 changed files with 399 additions and 191 deletions
+9
View File
@@ -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;