1.1 --- a/GUI/SensorGadget.cs Tue Sep 14 19:23:11 2010 +0000
1.2 +++ b/GUI/SensorGadget.cs Wed Sep 15 18:43:15 2010 +0000
1.3 @@ -339,7 +339,7 @@
1.4 y += pair.Value.Count * sensorLineHeight;
1.5 }
1.6 y += bottomMargin;
1.7 - y = Math.Max(y, topBorder + bottomBorder + 10);
1.8 + y = Math.Max(y, topBorder + hardwareLineHeight + bottomBorder);
1.9 this.Size = new Size(width, y);
1.10 }
1.11
1.12 @@ -399,6 +399,13 @@
1.13
1.14 int x;
1.15 int y = topMargin;
1.16 +
1.17 + if (sensors.Count == 0) {
1.18 + x = leftBorder + 1;
1.19 + g.DrawString("Add a sensor ...", smallFont, Brushes.White,
1.20 + new Rectangle(x, y - 1, w - rightBorder - x, 0));
1.21 + }
1.22 +
1.23 foreach (KeyValuePair<IHardware, IList<ISensor>> pair in sensors) {
1.24 if (hardwareNames.Value) {
1.25 if (y > topMargin)