91 Commits

Author SHA1 Message Date
Paul Werelds
cac6928f07 Small bits of refactoring. 2010-10-17 08:21:33 +00:00
Paul Werelds
8705b321f3 More refactoring. 2010-10-16 18:24:20 +00:00
Paul Werelds
ebc1e612d9 Added a WMI provider, documentation to follow. 2010-10-16 13:29:06 +00:00
Michael Möller
d9ae399ad2 Added a new sensor type "Level" for wear or charge level (or any other percentage based sensors that don't fit into Load or Control). 2010-10-07 19:34:36 +00:00
Michael Möller
4dc9a5e13d Fixed Issue 129. 2010-10-06 19:18:07 +00:00
Paul Werelds
0be214b3f2 Changed the way window position is saved and handled. This should now work properly. 2010-10-06 11:34:54 +00:00
Paul Werelds
23a18b8589 Fixed Issue 123. 2010-10-05 19:34:59 +00:00
Michael Möller
3e65f5bfc2 Fixed Issue 125. 2010-10-05 19:27:51 +00:00
Michael Möller
01b122da1d Fixed Issue 124. 2010-10-05 18:59:13 +00:00
Paul Werelds
e847b84d45 Cleaned the macros up a bit. 2010-10-04 17:34:58 +00:00
Paul Werelds
1bbe76aa37 Fixed the context menu positioning as well, following the previous fix to multimonitor setups. 2010-10-04 16:56:42 +00:00
Paul Werelds
718a8728ee Fixed an issue where the gadget would not be movable on an extra monitor positioned to the left of the primary monitor. 2010-10-04 06:46:55 +00:00
Michael Möller
f078c78c22 Replaced HttpUtility.UrlEncode with Uri.EscapeDataString and deleted the reference to the System.Web assembly. The System.Web assembly seems to be missing on some .NET 4.0 installations (and the overhead of using it is a bit large, just for the UrlEncode method). 2010-10-02 18:15:46 +00:00
Michael Möller
1e21129803 Fixed some problems when compiling in Mono and running on Linux. 2010-09-30 20:59:21 +00:00
Paul Werelds
acf99ee2d7 Added an option to minimize on close. 2010-09-23 20:44:59 +00:00
Michael Möller
2ba48147d9 Changed the trimming in the treeView to StringTrimming.EllipsisCharacter. 2010-09-18 19:56:39 +00:00
Michael Möller
568a27b2a4 Corrected the size of the DriveCommandParameter structure to match the documentation of SENDCMDINPARAMS http://msdn.microsoft.com/en-us/library/ff565401%28VS.85%29.aspx 2010-09-18 15:13:26 +00:00
Michael Möller
0f1c0e3a69 Fixed an InvalidOperationException in OpenHardwareMonitor.GUI.SensorGadget.OnPaint caused by sensors with null as value. 2010-09-17 18:32:11 +00:00
Michael Möller
49fad56e8c Added a check to verify the FTDI chip ID before opening the T-Balancer port. 2010-09-15 18:43:15 +00:00
Michael Möller
4158415801 Fixed an UnauthorizedAccessException when modifying the auto-startup registry entry. 2010-09-14 19:23:11 +00:00
Michael Möller
56ce10022a Fixed some hardware sorting issue in the gadget. Hardware with the same type and name would be added to the same section. 2010-09-13 22:55:25 +00:00
Michael Möller
53cc1cc75a Added a configurable font size and window width to the gadget. 2010-09-13 22:34:08 +00:00
Michael Möller
d4d25656de Improved the gadget formatting and added an option to remove the hardware names in the gadget. 2010-09-07 22:15:02 +00:00
Michael Möller
92a7f77851 Fixed the GadgetWindow AlwaysOnTop option (could be lost by tracking "Show Desktop" events even when AlwaysOnTop = true). 2010-09-07 18:51:42 +00:00
Michael Möller
4054b2d9fb Any OpenHardwareMonitorShowDesktopReferenceWindow (even from another process) will be good enough to detect "Show Desktop". This fixes the "Show Desktop" detection in a second instance of the Open Hardware Monitor. 2010-09-07 18:40:00 +00:00
Michael Möller
e8909c4f18 Fixed a few closure variables. The local variables used in the closure can not be shared between closures if their values should be different. 2010-09-07 18:32:37 +00:00
Michael Möller
39600d1cf3 Added a desktop gadget implementation. 2010-09-06 19:53:13 +00:00
Michael Möller
4c704e26bb Added a first implementation for the Heatmaster fan controller. 2010-08-22 21:53:11 +00:00
Michael Möller
2071610bbe Fixed some Code Analysis warnings. 2010-08-15 14:46:58 +00:00
Michael Möller
2ec18bf862 Changed the project files to Visual Studio 2010. Fixed some Code Analysis warnings. 2010-08-12 20:53:27 +00:00
Michael Möller
a2650ba983 Refactored the hardware monitoring code into a library (Issue 101). 2010-08-08 13:57:26 +00:00
Michael Möller
466c0db349 Refactoring and fine tuning for Linux GUI. 2010-07-27 18:38:11 +00:00
Michael Möller
78a4dab24f Replaced the SplitContainer with SplitContainerAdv. Now the panels are directly resized and the splitter can be drawn nicely. 2010-07-24 20:15:49 +00:00
Michael Möller
660c4baac1 Replaced all menus with the native implementations MainMenu and ContextMenu. Fixed a bug with the sensor renaming context menu. 2010-07-18 12:38:01 +00:00
Michael Möller
c7ef3b8ecf Fixed Issue 82. 2010-07-04 12:49:16 +00:00
Michael Möller
a72af71590 Fixed Issue 66. 2010-07-04 12:12:37 +00:00
Michael Möller
589ba48753 Fixed Issue 71. 2010-06-27 13:02:02 +00:00
Michael Möller
4a6cdb1e60 Fixed Issue 76. 2010-06-27 10:54:19 +00:00
Michael Möller
22ead80405 Fixed Issue 73. 2010-06-12 12:15:00 +00:00
Michael Möller
57dbd750e0 Added (partial) SMBIOS support for Linux by reading from sysfs. 2010-06-07 20:03:48 +00:00
Michael Möller
dd67a0aa5c Fixed Issue 69. 2010-06-06 11:07:57 +00:00
Michael Möller
c641a6a2fc Fixed Issue 65. 2010-06-05 18:59:54 +00:00
Michael Möller
1fc256f0b6 Fixed Issue 64. 2010-05-29 13:49:20 +00:00
Michael Möller
8c6c61d3e3 Added an event handler to save the configuration when the user logs off without closing the application first (http://blogs.msdn.com/b/oldnewthing/archive/2008/04/21/8413175.aspx), because FormClosed is not called in that case. 2010-05-25 22:33:03 +00:00
Michael Möller
b4203489bb Extended the ITE super I/O voltage reading by adding hidden voltage sensors for unknown channels. Added a few known DFI and Gigabyte mainboard voltage configurations. 2010-05-24 15:27:46 +00:00
Michael Möller
3550878a80 A few bug fixes to avoid crashes on Linux systems. 2010-05-22 15:51:59 +00:00
Michael Möller
059cf44ab7 Fixed an UnauthorizedAccessException in the StartupManager. The exception occurred when the application was running without administrator rights. A task for the current user could be created manually, but RegisterTaskDefinition somehow always throws an UnauthorizedAccessException. The current fix restricts the TaskScheduler startup method to accounts with administrator rights.
System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at OpenHardwareMonitor.TaskScheduler.ITaskFolder.RegisterTaskDefinition(String Path, ITaskDefinition pDefinition, Int32 flags, Object UserId, Object password, TASK_LOGON_TYPE LogonType, Object sddl)
   at OpenHardwareMonitor.GUI.StartupManager.CreateSchedulerTask()
   at OpenHardwareMonitor.GUI.StartupManager.set_Startup(Boolean value)
   at OpenHardwareMonitor.GUI.MainForm.runOnWindowsStartupToolStripMenuItem_CheckedChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnCheckedChanged(EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.set_CheckState(CheckState value)
   at System.Windows.Forms.ToolStripMenuItem.set_Checked(Boolean value)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
2010-05-21 17:28:52 +00:00
Michael Möller
8e5e1d7d19 Fixed Issue 10. 2010-05-20 21:23:54 +00:00
Michael Möller
4c3fdb2c82 Fixed Issue 60. 2010-05-18 19:12:13 +00:00
Michael Möller
fa260097d4 Added a sensor type Control (with unit percent) for (fan) PWM control sensors. Fixed Issue 2. 2010-05-15 14:16:00 +00:00