mirror of
https://github.com/openhardwaremonitor/openhardwaremonitor
synced 2025-09-02 07:15:31 +00:00
Fixed Issue 137.
This commit is contained in:
@@ -194,6 +194,10 @@ namespace OpenHardwareMonitor.GUI {
|
||||
settings.SetValue("sensorGadget.Width", Size.Width);
|
||||
Redraw();
|
||||
};
|
||||
|
||||
MouseDoubleClick += delegate(object obj, MouseEventArgs args) {
|
||||
SendHideShowCommand();
|
||||
};
|
||||
}
|
||||
|
||||
public override void Dispose() {
|
||||
@@ -304,6 +308,13 @@ namespace OpenHardwareMonitor.GUI {
|
||||
Resize();
|
||||
}
|
||||
|
||||
public event EventHandler HideShowCommand;
|
||||
|
||||
public void SendHideShowCommand() {
|
||||
if (HideShowCommand != null)
|
||||
HideShowCommand(this, null);
|
||||
}
|
||||
|
||||
private Font CreateFont(float size, FontStyle style) {
|
||||
try {
|
||||
return new Font(SystemFonts.MessageBoxFont.FontFamily, size, style);
|
||||
|
Reference in New Issue
Block a user