mirror of
https://github.com/ckaczor/SystemTemperatureStatusWindow.git
synced 2026-02-17 02:51:45 -05:00
Update to latest status window library version
This commit is contained in:
@@ -27,6 +27,11 @@ namespace SystemTemperatureStatusWindow
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void HandleTimerElapsed(object sender, ElapsedEventArgs e)
|
private void HandleTimerElapsed(object sender, ElapsedEventArgs e)
|
||||||
|
{
|
||||||
|
Update();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -114,22 +119,25 @@ namespace SystemTemperatureStatusWindow
|
|||||||
_refreshTimer.Start();
|
_refreshTimer.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Name
|
public string Name => "System Temperature";
|
||||||
|
|
||||||
|
public System.Drawing.Icon Icon => Resources.ApplicationIcon;
|
||||||
|
|
||||||
|
public void ShowSettings()
|
||||||
{
|
{
|
||||||
get { return "System Temperature"; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public System.Drawing.Icon Icon
|
public void Refresh()
|
||||||
{
|
{
|
||||||
get { return Resources.ApplicationIcon; }
|
Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool HasSettingsMenu => false;
|
||||||
|
public bool HasRefreshMenu => true;
|
||||||
|
|
||||||
public string WindowSettings
|
public string WindowSettings
|
||||||
{
|
{
|
||||||
get
|
get => Settings.Default.WindowSettings;
|
||||||
{
|
|
||||||
return Settings.Default.WindowSettings;
|
|
||||||
}
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
Settings.Default.WindowSettings = value;
|
Settings.Default.WindowSettings = value;
|
||||||
|
|||||||
Reference in New Issue
Block a user