Fixed Issue 26. Added a dialog to automatically send a crash report.

This commit is contained in:
Michael Möller
2010-04-02 16:05:07 +00:00
parent 485c80b04b
commit 20158a0edd
16 changed files with 620 additions and 121 deletions
+6 -2
View File
@@ -191,8 +191,12 @@ namespace OpenHardwareMonitor.GUI {
return IconFactory.Create(bytes, 16, 16, PixelFormat.Format32bppArgb);
}
private Icon CreateLoadIcon() {
graphics.Clear(Color.Transparent);
private Icon CreateLoadIcon() {
try {
graphics.Clear(Color.Transparent);
} catch (ArgumentException) {
graphics.Clear(Color.Black);
}
graphics.FillRectangle(darkBrush, 0.5f, -0.5f, 14, 16);
float y = 0.16f * (100 - sensor.Value.Value);
graphics.FillRectangle(brush, 0.5f, -0.5f + y, 14, 16 - y);